Create an iterator which yields a value a single time.
A new iterator which yields the value a single time.
import { once } from '@lumino/algorithm';let stream = once(7);Array.from(stream); // [7]
The value to wrap in an iterator.
Generated using TypeDoc
Create an iterator which yields a value a single time.
Deprecated
Returns
A new iterator which yields the value a single time.
Example