2 ms·
- Rust doesn't really have exceptions is the short answer. Errors are represented by the Result type. - You can trace inside of async code, there are libraries
by leshow 7y ago
- Rust doesn't really have exceptions is the short answer. Errors are represented by the Result type.
- You can trace inside of async code, there are libraries like tracing and tracing-futures.
- Not sure how to answer your last question. From my understanding of this library is uses the async-std runtime, which comes with a threadpool capable of executing many tasks over a set of processes. Each of the async blocks you write inside a combinator here (.map, .for_each, etc) could hypothetically run on any thread, the idea is each task is running in parallel. That's what I'm gathering anyway