disconnect


Description:

[ Version ( since = "2.22" ) ]
public void disconnect (ulong handler_id)

Disconnects a handler from a cancellable instance similar to disconnect.

Additionally, in the event that a signal handler is currently running, this call will block until the handler has finished. Calling this function from a cancelled signal handler will therefore result in a deadlock.

This avoids a race condition where a thread cancels at the same time as the cancellable operation is finished and the signal handler is removed. See cancelled for details on how to use this.

If this is null or handler_id is `0` this function does nothing.

Parameters:

this

A Cancellable or null.

handler_id

Handler id of the handler to be disconnected, or `0`.