ExecutorType

public protocol ExecutorType

Generic Executor protocol

  • Schedule a closure that returns an A and return the FutureType that holds reference to the FutureEvent

    Declaration

    Swift

    func run<A>(_ block: @escaping Callable<A>) -> Future<A>

    Parameters

    block

    closure to schedule (and run) on Self

    Return Value

    Future that holds reference to the resulting event