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.

trigger
stream
generateIndefinitely()
〈🟦〉
… 🟦 🟦 🟦 🟦 🟦 🟦