Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/core / / barrier
Function: barrier()
ts
function barrier<T>(from, opts?): Barrier<T>;Defined in: packages/core/src/channels/channels.ts:188
Construct a Barrier channel.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
from | readonly string[] |
opts? | { default?: T; } |
opts.default? | T |
Returns
Barrier<T>