Options
All
  • Public
  • Public/Protected
  • All
Menu

Bind the callback and only invoke the callback once regardless how many times BindOnceFuture.call is invoked.

Type Parameters

  • R

  • This = unknown

  • T extends ((this: This, ...args: unknown[]) => R) = (() => R)

Hierarchy

  • BindOnceFuture

Index

Constructors

Accessors

Methods

Constructors

  • new BindOnceFuture<R, This, T>(_callback: T, _that: This): BindOnceFuture<R, This, T>

Accessors

  • get isCalled(): boolean
  • get promise(): Promise<R>

Methods

  • call(...args: Parameters<T>): Promise<R>

Generated using TypeDoc