Interface Pushable<T>

An iterable that you can push values into.

interface Pushable<T> {
    fail: ((err: Error) => void);
    push: ((value: T) => void);
    stop: (() => void);
}

Type Parameters

  • T

Hierarchy

  • AsyncIterable<T>
    • Pushable

Properties

Properties

fail: ((err: Error) => void)

End the iterable abnormally.

push: ((value: T) => void)

Push a value.

stop: (() => void)

End the iterable normally.