Instance Method

remove(from:forMode:)

This method should be implemented by a subclass to stop monitoring of a port when removed from a give run loop in a given input mode.

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

This method should not be called directly.

See Also

Port Monitoring

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

This method should be implemented by a subclass to set up monitoring of a port when added to a given run loop in a given input mode.