async-fuse
Helpers for fusing asynchronous computations.
This is especially useful in combination with optional branches using tokio::select, where the future being polled isn't necessarily set. So instead of requiring a potentially problematic branch precondition, the future will simply be marked as pending indefinitely.
Features
stream
- MakesHeap
andStack
implement theStream
trait if they contain a stream.
Examples
This is available as the
ticker
example:
use Duration;
use time;
let sleep = new;
pin!;
for _ in 0..20usize
License: MIT/Apache-2.0