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.