Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "sinks/extract-first"

Index

Functions

Functions

extractFirst

  • Resolves with the first element emitted by the observable, then releases the observable. If no items are emitted the promise is rejected.

    Type parameters

    • T

      Type of items emitted by the observable.

    Parameters

    Returns Promise<T>

    Promise that resolves with a single item.

Generated using TypeDoc