stream<T> method
Registers and schedules a task
that returns a stream of values.
Returns a stream containing the task's values.
Implementation
Stream<T> stream<T>(Stream<T> Function(W worker) task,
{PerfCounter? counter}) =>
scheduleStream(task, counter: counter).stream;