3 unstable releases
0.2.1 | Jan 22, 2021 |
---|---|
0.2.0 | Apr 7, 2020 |
0.1.0 | Apr 7, 2020 |
#143 in Asynchronous
4,397 downloads per month
Used in 19 crates
(9 directly)
6KB
82 lines
Pollster
Pollster is an incredibly minimal async executor for Rust that lets you block a thread on the result of a future.
let result = pollster::block_on(my_future);
That's it. That's all it does. Nothing more. No dependencies, no complexity. No need to drag in 50-odd dependencies to evaluate a future.
lib.rs
:
A minimal async executor that lets you block on a future
Example
let my_future = async {};
let result = pollster::block_on(my_future);