Expand description
A set of async utilities.
Modulesยง
- async_
queue ๐ - backoff ๐
- condvar ๐
- condwait ๐
- select ๐
- sleep ๐
- task_
group ๐ - timeout ๐
Structsยง
- Async
Queue - Bounded async queue. Producers
push(blocks while full), consumersrecv(blocks while empty). - Backoff
- Exponential backoff https://en.wikipedia.org/wiki/Exponential_backoff
- CondVar
- CondVar is an async version of https://doc.rust-lang.org/std/sync/struct.Condvar.html
- Cond
Wait - CondWait is a wrapper struct for CondVar with a Mutex boolean flag.
- Task
Group - TaskGroup A group that contains spawned tasks.
Enumsยง
- Either
- The return value from the
selectfunction, indicating which future completed first. - Task
Result - The result of a spawned task.