Type alias Sink<T>

Sink<in T>: ((this, value) => void | PromiseLike<void>)

Type Parameters

  • in T

    Type of data values to sink.

Type declaration

    • (this, value): void | PromiseLike<void>
    • Sink is a function that sinks the data poured by faucet.

      The poured value is passed as first argument, and can be used inside the sink function, but can not be used outside of it after processing.

      The value can be sank either synchronously or asynchronously.

      Parameters

      • this: void
      • value: T

        Data value to sink.

      Returns void | PromiseLike<void>

      Either none when the value sank synchronously, or a promise-like instance resolved when the value sank asynchronously.

Generated using TypeDoc