send


Description:

public Future send (owned Future future)

Queues future into the channel.

The other end of the channel can receive the future (or a future that will eventually resolve to future) using [ method@Dex.Channel.receive].

This function returns a [class@Dex.Future] that will resolve when the channels capacity is low enough to queue more items.

If the send side of the channel is closed, the returned [class@Dex.Future] will be rejected with dex_error_channel_closed.

Parameters:

this

a [class@Dex.Channel]

future

a [class@Dex.Future]

Returns:

a [class@Dex.Future]