Expand description
Async Buffer
A bounded SPSC, FIFO, async buffer that supports arbitrary weights for values.
Weight is used to bound the channel, on creation you specify a max weight and for each value you specify a weight.
Structs§
- The appender/sink side of the buffer.
- A
Future
for waiting for capacity in the buffer. - A
Future
for adding an item to the buffer. - The stream side of the buffer.
Enums§
Functions§
- Initializes a new buffer with the provided capacity.