Interface Pushable<T>

An iterable that you can push values into.

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

Type Parameters

  • T

Hierarchy

  • AsyncIterable<T>
    • Pushable

Properties

Properties

fail: ((err) => void)

End the iterable abnormally.

Type declaration

    • (err): void
    • Parameters

      • err: Error

      Returns void

push: ((value) => void)

Push a value.

Type declaration

    • (value): void
    • Parameters

      • value: T

      Returns void

stop: (() => void)

End the iterable normally.

Type declaration

    • (): void
    • Returns void