Instance Method


Determines the operation queue that is used to call methods on the connection’s delegate.


func setDelegateQueue(_ queue: OperationQueue?)



The operation queue to use when calling delegate methods.


By default, a connection is scheduled on the current thread in the default mode when it is created. If you create a connection with the init(request:delegate:startImmediately:) method and provide false for the startImmediately parameter, you can instead schedule the connection on an operation queue before starting it with the start() method.

You cannot reschedule a connection after it has started.

It is an error to schedule delegate method calls with both this method and the schedule(in:forMode:) method.

See Also

Scheduling Delegate Method Calls

func schedule(in: RunLoop, forMode: RunLoop.Mode)

Determines the run loop and mode that the connection uses to call methods on its delegate.

func unschedule(from: RunLoop, forMode: RunLoop.Mode)

Causes the connection to stop calling delegate methods in the specified run loop and mode.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software