Skip to main content

Module memory

Module memory 

Source
Expand description

Shared in-process queues with different std and no_std behavior. Shared in-process task/response queues; cloning shares the same storage.

Both backends correlate responses by task ID, so IDs must be unique among outstanding tasks. With std, bounded Tokio channels wait for work and apply backpressure. Without std, spin-locked queues poll immediately and discard old entries when an optional capacity is reached.

Type Aliasesยง

MemoryQueue
Tokio-backed queue; defaults to a capacity of 100 for each channel.