3 ms·
My problem with this is if 'I' (or in code, the current program) actually loads the washer and cleans the kitchen, then these things run in serial. If I do wha
by CJefferson 7y ago
My problem with this is if 'I' (or in code, the current program) actually loads the washer and cleans the kitchen, then these things run in serial.
If I do what I've always done in rust, which in use threads, I get lovely easy parallelization. Async only seems useful when your program doesn't do anything non trivial, but just dispatches to other things, as any one function that takes a long time blocks all other async functions until completion?
- shepmaster 7y agoYes, but you can run your blocking code on a thread which presents itself as a future: - What is the best approach to encapsulate blocking I/O in future-rs? — https://stackoverflow.com/q/41932137/155423 https://stackoverflow.com/q/41932137/155423