DispatchSource.SetCancelHandler(Action) Method

Definition

Provides a cancellation handler

public void SetCancelHandler (Action handler);
member this.SetCancelHandler : Action -> unit

Parameters

handler
Action

Code to invoke on the target queue.   This handler is invoked only once.

Remarks

Applies to