| Crates.io | its_ok_to_be_block_on |
| lib.rs | its_ok_to_be_block_on |
| version | 0.1.0 |
| created_at | 2024-02-06 22:16:25.422208+00 |
| updated_at | 2024-02-06 22:16:25.422208+00 |
| description | A minimal implementation of block_on, to execute futures in a syncronous context. |
| homepage | |
| repository | https://github.com/infogulch/its_ok_to_be_block_on |
| max_upload_size | |
| id | 1129547 |
| size | 18,332 |
block_onSometimes 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.
It compiles. ¯\(ツ)/¯