blocker 0.1.2

Block rust futures to create a synchronous wrapper around an asynchronous api
Documentation
  • Coverage
  • 28.57%
    2 out of 7 items documented0 out of 4 items with examples
  • Size
  • Source code size: 35.28 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 834.1 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 22s Average build duration of successful builds.
  • all releases: 22s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • jdonszelmann/blocker
    1 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • NULLx76 jdonszelmann

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