hold

fun hold(call: Int): AsyncGate(source)

Returns a gate that holds the call with zero-based index call until opened.

Register the hold before the call arrives. The call is recorded before it waits, and cancelling the calling coroutine while it is held cancels the call.

Return

The gate to open when the call may proceed.

Parameters

call

The zero-based call index to hold.