• Represents a promise as event sender.

    When the promise resolves successfully the resolved value is sent to registered event receivers. The events supply is Supply.off cut off immediately after that without any reason specified.

    When the promise is rejected the events supply is Supply.off cut off with promise rejection reason.

    Type Parameters

    • T

      A type of value the promise is resolved to.

    Parameters

    • promise: T | PromiseLike<T>

      A promise-like instance or raw value to represent as event sender.

    Returns OnEvent<[T]>

    An OnEvent sender of the given promise settlement event.

Generated using TypeDoc