CFRunLoop

extension CFRunLoop: Executor

A run loop processes events on a thread, and is a fundamental construct in Cocoa applications.

As an Executor, submitted functions are invoked on the next iteration of the run loop.

  • Declaration

    Swift

    public func submit(_ body: @escaping() -> Void)