local-spawn-pool

Crates.iolocal-spawn-pool
lib.rslocal-spawn-pool
version0.1.0
sourcesrc
created_at2023-02-09 19:01:28.472928
updated_at2023-02-09 19:01:28.472928
descriptionSpawn `!Send` futures in a pool and await for all of them to finish. Standalone alternative to `tokio::task::LocalSet`.
homepagehttps://github.com/Mahdrentys/local-spawn-pool-rs
repositoryhttps://github.com/Mahdrentys/local-spawn-pool-rs
max_upload_size
id781034
size27,801
Mahdrentys (Mahdrentys)

documentation

README

LocalSpawnPool

A pool of tasks to spawn futures and wait for them on a single thread.

It is inspired by and has almost the same functionality as tokio::task::LocalSet, but this standalone crate allows you to avoid importing the whole tokio crate if you don't need it.

In some cases, it is necessary to run one or more futures that do not implement Send and thus are unsafe to send between threads. In these cases, a LocalSpawnPool may be used to schedule one or more !Send futures to run together on the same thread.

See the documentation for more details.

Commit count: 0

cargo fmt