Expand description
A facility for an MPSC channel that counts the number of outstanding entries on the channel.
Re-exportsยง
use std::pin::Pin;๐use std::sync::Arc;๐use std::sync::atomic::AtomicUsize;๐use std::sync::atomic::Ordering;๐use std::task::ready;๐use std::task::Context;๐use std::task::Poll;๐use futures::Stream;๐use futures::sink::Sink;๐use futures::stream::FusedStream;๐use pin_project::pin_project;๐
Structsยง
- Counting
Sink - A wrapper around an arbitrary
Sink, to count the items inserted. - Counting
Stream - A wrapper around an arbitrary
Stream, to count the items inserted.
Functionsยง
- channel
- Wrap a
Sink/Streampair into aCountingSinkandCountingStreampair.