Treatment generateIndefinitely

std/flow::generateIndefinitely


Generics

◻ T (any)

Parameters

↳ var data: T

Inputs

⇥ trigger: Block<void>

Outputs

↦ stream: Stream<T>


Generate a stream indefinitely.

This generates a continuous stream, until stream consumers closes it.

graph LR
     T("generateIndefinitely()")
     B["〈🟦〉"] -->|trigger| T
         
     T -->|stream| S["… 🟦 🟦 🟦 🟦 🟦 🟦"]
     
     
     style B fill:#ffff,stroke:#ffff
     style S fill:#ffff,stroke:#ffff