23 lines
429 B
Markdown
23 lines
429 B
Markdown
|
|
# queue
|
||
|
|
|
||
|
|
Materialize a `SinkQueue` that can be pulled to trigger demand through the sink.
|
||
|
|
|
||
|
|
## Signature
|
||
|
|
|
||
|
|
## Description
|
||
|
|
|
||
|
|
Materialize a `SinkQueue` that can be pulled to trigger demand through the sink. The queue contains
|
||
|
|
a buffer in case stream emitting elements faster than queue pulling them.
|
||
|
|
|
||
|
|
|
||
|
|
@@@div { .callout }
|
||
|
|
|
||
|
|
**cancels** when `SinkQueue.cancel` is called
|
||
|
|
|
||
|
|
**backpressures** when buffer has some space
|
||
|
|
|
||
|
|
@@@
|
||
|
|
|
||
|
|
## Example
|
||
|
|
|