withHandlerRegistered
inline suspend fun <T> CancellationSupport.withHandlerRegistered(callId: RpcCallId, block: () -> T): T
Utility to bind the currently executing coroutine's Job to callId on a CancellationSupport so that an incoming remote cancel signal cancels this coroutine.
Unregisters on return.