Completer

public class Completer<Wrapped>

Produces Futures that can be completed with a value at a later time.

  • The Future that will be completed by this Completer.

    Declaration

    Swift

    public let future = Future<Wrapped>()
  • Create a new completer.

    Declaration

    Swift

    public init() {}
  • Complete the future with given value.

    Declaration

    Swift

    public func complete(value: Wrapped)