Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "sources/from-promise"

Index

Functions

Functions

fromPromise

  • Creates an observable from a promise, that emits exactly one value when the promise resolves.

    Type parameters

    • T

      Type of the promise value.

    Parameters

    • p: Promise<T>

      Promise that will be awaited.

    Returns Observable<T>

    New observable that emits the value the promise settles with.

Generated using TypeDoc