stop-token
stop-token copied to clipboard
figure out how to work with temporal streams too


We need to distinguish between a deadline and a boundary. Deadlines are hit exactly once. Boundaries can be hit multiple times.
Maybe we should rename {AsyncIter, Future}::until with:
AsyncIter::timeouttakesimpl BoundaryAsyncIter::timeout_attakesimpl DeadlineFuture:timeouttakesimpl BoundaryFuture::timeout_attakesimpl Deadline
note: timeout_at takes StopToken, Instant, and possibly SystemTime.
Prior art for this naming:
- https://www.learnrxjs.io/learn-rxjs/operators/utility/timeout
- https://docs.rs/tokio/latest/tokio/time/index.html#functions