[−][src]Crate pasts
Minimal and simpler alternative to the futures crate.
- No required std
- No allocations
- No procedural macros (for faster compile times)
- No dependencies
- No cost (True zero-cost abstractions!)
- No pain (API super easy to learn & use!)
- No unsafe code in pinning macro (allowing you to
forbid(unsafe_code)
)
Macros
join | Poll multiple futures concurrently, and return a tuple of returned values from each future. |
run | Poll multiple futures concurrently in a loop. At completion of each future, the future is regenerated. |
select | Poll multiple futures concurrently, and run the future that is ready first. |
task | Turn a |
Structs
Task | A task that is either working or has completed. |
ThreadInterrupt | std feature required. An efficient thread interrupt. |
Traits
Interrupt | An interrupt handler. |
Functions
spawn_blocking | std feature required. Construct a future from a blocking function to be run on a dynamically sized thread pool. |