Future

public class Future<Value>

A future value.

  • Blocks the current thread until the value is available, and returns it.

    It is a programmer error to call this method several times.

    Throws

    Any error that prevented the value from becoming available.

    Declaration

    Swift

    public func wait() throws -> Value