Contents

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 Promise that the publisher invokes when the publisher emits an element or terminates with an error.

See Also

Creating a future