#async #minimal #executor #runtime #block-on

pollster

A minimal async executor that lets you block on a future

3 unstable releases

0.2.1 Jan 22, 2021
0.2.0 Apr 7, 2020
0.1.0 Apr 7, 2020

#143 in Asynchronous

Download history 968/week @ 2020-11-04 1099/week @ 2020-11-11 1119/week @ 2020-11-18 931/week @ 2020-11-25 954/week @ 2020-12-02 1265/week @ 2020-12-09 1058/week @ 2020-12-16 449/week @ 2020-12-23 801/week @ 2020-12-30 1483/week @ 2021-01-06 1364/week @ 2021-01-13 1458/week @ 2021-01-20 1764/week @ 2021-01-27 2374/week @ 2021-02-03 3103/week @ 2021-02-10 3709/week @ 2021-02-17

4,397 downloads per month
Used in 19 crates (9 directly)

Apache-2.0/MIT

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.

Cargo Documentation License

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);

No runtime deps