Crate stopper

Source
Expand description

§Stopper

The primary type for this crate is Stopper, which provides a synchronized mechanism for canceling Futures and Streams.

Structs§

FutureStopper
A wrapper that cancels the contained Future at an await point and returns None when the associated Stopper is stopped.
Stopped
A future that awaits this Stopper being stopped
Stopper
This struct provides a synchronized mechanism for canceling Futures and Streams.
StreamStopper
A wrapper type that stops a Stream when the associated Stopper is stopped