Skip to content

Block rust futures to create a synchronous wrapper around an asynchronous api

License

Notifications You must be signed in to change notification settings

jdonszelmann/blocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 does not rely on 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

About

Block rust futures to create a synchronous wrapper around an asynchronous api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages