Initializer

init(_:)

Creates a publisher that invokes a promise closure when the publisher emits an element.

Declaration

init(_ attemptToFulfill: @escaping (@escaping Future<Output, Failure>.Promise) -> Void)

Parameters

attemptToFulfill

A Future.Promise that the publisher invokes when the publisher emits an element or terminates with an error.

See Also

Creating a Future

typealias Future.Promise

A type that represents a closure to invoke in the future, when an element or error is available.