Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "sources/from-async-function"

Index

Functions

Functions

fromAsyncFunction

  • fromAsyncFunction<T>(f: function): Observable<T>
  • Creates an observable from an asynchronous function. The observable emits exactly one value when once the function returns.

    Type parameters

    • T

      Type of the promise value.

    Parameters

    • f: function

      Async function that will be awaited.

        • (): Promise<T>
        • Returns Promise<T>

    Returns Observable<T>

    New observable that emits the value the async function returns.

Generated using TypeDoc