Type alias EachResult<T>

EachResult<T>: {
    item: T;
    next: Suspend<void>;
}

The result type returned from calls to Each.next()

Type Parameters

  • T

Type declaration

  • item: T

    The value provided by the source being iterated

  • next: Suspend<void>

    A suspend callback that must be yield-ed before the next call to the iterator's .next() method. (That is, you must yield next it exactly once per loop pass. See each() for more details.)