CFRunLoopRemoveSource(_:_:_:)
Removes a CFRunLoopSource object from a run loop mode.
Declaration
func CFRunLoopRemoveSource(_ rl: CFRunLoop!, _ source: CFRunLoopSource!, _ mode: CFRunLoopMode!)Parameters
- rl:
The run loop to modify.
- source:
The run loop source to remove.
- mode:
The run loop mode of
rlfrom which to removesource. Use the constant Commonmodes to removesourcefrom the set of objects monitored by all the common modes.
Discussion
If source is a version 0 source, this function calls the cancel callback function specified in the context structure for source. See CFRunLoopSourceContext and CFRunLoopSourceContext1for more details.
If rl does not contain source in mode, this function does nothing.