This module provides StreamMap, a container that maps keys to async streams.
It allows for dynamic management of multiple named streams with async operations.
This is an existential wrapper for AsyncStream that is used for the .ofArray function
with CoeDep so it's easier and we keep StreamMap on Type 0.
- mk {α t : Type} [Internal.Async.IO.AsyncStream t α] : t → AnyAsyncStream α
Instances For
Instances For
A container that maps keys to async streams, enabling dynamic stream management and unified selection operations across multiple named data sources.
Instances For
Register a new async stream with the given name
Instances For
Create a StreamMap from an array of named streams
Instances For
Get a combined selector that returns the stream name and value
Instances For
Wait for the first value inside of the stream map.
Instances For
Wait for the first value inside of the stream map.
Instances For
Get the number of registered streams
Instances For
Check if the StreamMap is empty
Instances For
Get all registered stream names
Instances For
Get a specific stream selector by name
Instances For
Convert to array of name-selector pairs