Instance Method

remove(from:forMode:)

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

Declaration

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

Parameters

runLoop

The run loop from which to remove the receiver.

mode

The run loop mode from which to remove the receiver.

Discussion

When the receiver is removed, the run loop stops monitoring the Mach port for incoming messages.

See Also

Scheduling the Port on a Run Loop

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

Schedules the receiver into 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