UNPKG

rsxjs

Version:

Resilience Extensions for JS.

12 lines (11 loc) 356 B
/** * @file src/channel/select.ts * @description Control flow helper for channels. * @copyright 2018-present Karim Alibhai. All rights reserved. */ import { chan } from './channel'; declare type SelectStatement = { [key in chan<any> | '_']?: (value?: any) => any; }; export declare function select(cases: SelectStatement): Promise<any>; export {};