GitHub location: https://github.com/async-rs/async-task/
async-task is the task allocator of async-std. Tasks are very heavy on raw VTables, so some unsafe code is required. It's roughly 800 lines of code, but has 37 uses of unsafe. Many are pointer to pointer casts.
It's tested and checked with valgrind.
Its only dependency is crossbeam_utils::Backoff, which has no use of unsafe.
GitHub location: https://github.com/async-rs/async-task/
async-taskis the task allocator ofasync-std. Tasks are very heavy on raw VTables, so some unsafe code is required. It's roughly 800 lines of code, but has 37 uses ofunsafe. Many are pointer to pointer casts.It's tested and checked with valgrind.
Its only dependency is
crossbeam_utils::Backoff, which has no use ofunsafe.