Module block_on

Source
Expand description

A very simple async executor based on the futures-executor crate.

The implementation mostly comes from https://docs.rs/futures-executor/0.3.30/src/futures_executor/local_pool.rs.html#45-103.

See also this reddit thread for more info about simple executors: https://www.reddit.com/r/rust/comments/eilw8j/what_is_the_minimum_that_must_be_implemented_to/

Structsยง

Enter ๐Ÿ”’
ThreadNotify ๐Ÿ”’

Constantsยง

CURRENT_THREAD_NOTIFY ๐Ÿ”’
ENTERED ๐Ÿ”’

Functionsยง

block_on
Run a future to completion on the current thread.
run_executor ๐Ÿ”’
simple_join
Create a new future that finishes when the list of futures complete.