blocker

Crates.ioblocker
lib.rsblocker
version0.1.2
sourcesrc
created_at2020-12-15 23:13:11.266101
updated_at2020-12-16 04:45:45.603552
descriptionBlock rust futures to create a synchronous wrapper around an asynchronous api
homepage
repositoryhttps://github.com/jonay2000/blocker
max_upload_size
id323371
size35,282
Vivian Roest (NULLx76)

documentation

README

Codecov Docs.rs Crates.io

Blocker!

Blocker blocks. That's what it does, nothing more. Give it an async function and it waits until it's done. Forever. Works in #![no_std] environments as long as alloc is available. Blocker itself does not use any unsafe code.

Enable the thread_yield feature to yield the current thread whenever an async function returns Poll::pending.

License

This code is licensed under the Apache 2.0 license

Commit count: 3

cargo fmt