its_ok_to_be_block_on

Crates.ioits_ok_to_be_block_on
lib.rsits_ok_to_be_block_on
version0.1.0
sourcesrc
created_at2024-02-06 22:16:25.422208
updated_at2024-02-06 22:16:25.422208
descriptionA minimal implementation of block_on, to execute futures in a syncronous context.
homepage
repositoryhttps://github.com/infogulch/its_ok_to_be_block_on
max_upload_size
id1129547
size18,332
Joe Taber (infogulch)

documentation

README

It's ok to be block_on

Sometimes you just need block_on, without an entire bloated futures runtime.

It's ok.

This crate copies and exports the per-thread block_on implementation (and license) from the futures package, minimizing the size of the code and the dependency tree, allowing users to block on the completion of a future in a syncronous context without needing to create and manage an executor.

Does it work?

It compiles. ¯\(ツ)

Commit count: 0

cargo fmt