Instance Method


Schedules the receiver into the run loop mode mode of runLoop.


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



The run loop to which to add the receiver.


The run loop mode in which to add the receiver.


When the receiver is scheduled, the run loop monitors the mach port for incoming messages and, when a message arrives, invokes the delegate method handleMachMessage(_:).

See Also

Scheduling the Port on a Run Loop

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

Removes the receiver from the run loop mode mode of runLoop.

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