ThrowingCompleter
public class ThrowingCompleter<Wrapped>
Produces ThrowingFutures that can be completed with a value or error at a later time.
-
The
ThrowingFuturethat will be completed by thisThrowingCompleter.Declaration
Swift
public let future = ThrowingFuture<Wrapped>() -
Create a new completer.
Declaration
Swift
public init() {} -
Complete the
futurewith given value.Declaration
Swift
public func complete(value: Wrapped) -
Complete the
futurewith given error.Declaration
Swift
public func completeWithError(error: ErrorType)
ThrowingCompleter Class Reference