Skip to content

ChannelEndpoints

1 min read

Import: import system.task;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

ChannelEndpoints

A local async queue with independently owned sending and receiving endpoints.

public class ChannelEndpoints<T>

sender

Creates another sending endpoint; dropping the last sender closes sends.

public get sender(): Sender<T>

receiver

Creates another receiving endpoint; dropping the last receiver wakes blocked sends.

public get receiver(): Receiver<T>