3 unstable releases
new 0.2.0 | Nov 7, 2024 |
---|---|
0.1.1 | Oct 22, 2024 |
0.1.0 | Oct 14, 2024 |
#453 in Asynchronous
371 downloads per month
Used in 2 crates
81KB
364 lines
test_executors
This crate provides extremely simple, yet useful, async executors. They are primarily useful for writing unit tests without bringing in a full-blown executor such as tokio.
The executors are:
- spin_on: polls a future in a busyloop on the current thread.
- sleep_on: polls a future on the current thread, sleeping between polls.
- spawn_on: spawns a future on a new thread, polling it there.
some_executor
This crate implements the some_executor trait for all executors, allowing them to be used in executor-agnostic code.
lib.rs
:
A simple runtime that is useful for testing.
It blocks the current thread until the future completes.
Blocks the calling thread until a future is ready.
Dependencies
~425KB