2 ms·
What different way of doing things? If I want sequential execution, I just call functions like in the synchronous case and append .await. If I want parallel an
by tcfhgj 6mo ago
What different way of doing things?
If I want sequential execution, I just call functions like in the synchronous case and append .await.
If I want parallel and/or concurrent execution, I spawn futures instead of threads and .await them.
If I want to use locks across await points, I use async locks, anything else?