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
Equations
A container that maps keys to async streams, enabling dynamic stream management and unified selection operations across multiple named data sources.
Instances For
Create an empty StreamMap
Equations
Instances For
Register a new async stream with the given name
Equations
Instances For
Create a StreamMap from an array of named streams
Equations
Instances For
Get a combined selector that returns the stream name and value
Equations
Instances For
Wait for the first value inside of the stream map.
Equations
Instances For
Wait for the first value inside of the stream map.
Equations
Instances For
Get the number of registered streams
Equations
Instances For
Check if the StreamMap is empty
Equations
Instances For
Get all registered stream names
Equations
Instances For
Get a specific stream selector by name
Equations
Instances For
Convert to array of name-selector pairs