Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "ChannelsUtilities"

Index

Functions

alts

  • alts<T>(...chs: Channel<T>[]): Promise<T>
  • Type parameters

    • T

    Parameters

    • Rest ...chs: Channel<T>[]

      An array of Channels

    Returns Promise<T>

    A Promise that will fullfill with a message contained into the winner channel

removeLosersRacersFromTheirChannels

  • removeLosersRacersFromTheirChannels<T>(chs: Channel<T>[]): void

select

  • select<T>(selectable: Selectable<T>): Promise<[any, T]>
  • Type parameters

    • T

    Parameters

    Returns Promise<[any, T]>

    A Promise that will fullfill with a message contained into the winner channel and its key.

Generated using TypeDoc