@laserware/stasis
    Preparing search index...

    Function channel

    • A factory method that can be used to create Channels. You can optionally pass it a buffer to control how the channel buffers the messages.

      By default, if no buffer is provided, the channel will queue incoming messages up to 10 until interested takers are registered. The default buffering will deliver message using a FIFO strategy: a new taker will be delivered the oldest message in the buffer.

      Type Parameters

      • T extends NotUndefined

      Parameters

      Returns Channel<T>