Crates.io | async-ringbuffer |
lib.rs | async-ringbuffer |
version | 0.5.5 |
source | src |
created_at | 2017-11-22 22:25:38.538426 |
updated_at | 2019-12-22 17:17:39.931953 |
description | A nonblocking spsc ring buffer with fixed capacity. |
homepage | |
repository | https://github.com/sunrise-choir/async-ringbuffer |
max_upload_size | |
id | 40276 |
size | 48,819 |
An asynchronous, fixed-capacity single-reader single-writer ring buffer that notifies the reader onces data becomes available, and notifies the writer once new space for data becomes available. This is done via the AsyncRead and AsyncWrite traits.
This crate is to AsyncRead
and AsyncWrite
what futures::unsync::spsc
is to Stream
and Sink
(except that futures::unsync::spsc
doesn't currently exist).