Language

CFMessagePort.SetDispatchQueue(DispatchQueue) Method

Definition

Schedules this local port's callbacks on a dispatch queue.

public void SetDispatchQueue(CoreFoundation.DispatchQueue? queue);
member this.SetDispatchQueue : CoreFoundation.DispatchQueue -> unit

Parameters

queue
DispatchQueue

The dispatch queue to use, or null to stop using the current queue.

Remarks

A port cannot use both a dispatch queue and a run loop source. Calling this method on a remote or invalid port has no effect.

Applies to