Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MethodInvoker<I, O>

Type parameters

  • I

  • O

Hierarchy

  • MethodInvoker

Constructors

constructor

  • new MethodInvoker<I, O>(func: SyncFunction<any, any> | AsyncFunction<any, any>, ...args: I[]): MethodInvoker<I, O>
  • Type parameters

    • I

    • O

    Parameters

    • func: SyncFunction<any, any> | AsyncFunction<any, any>
    • Rest ...args: I[]

    Returns MethodInvoker<I, O>

Methods

errHandler

safeInvokeAsync

  • safeInvokeAsync(): Promise<Undefinable<O>>
  • Returns Promise<Undefinable<O>>

safeInvokeSync

  • safeInvokeSync(): Undefinable<O>
  • Returns Undefinable<O>

thisArg

  • thisArg(thisArgument: Record<string, unknown>): MethodInvoker<I, O>
  • Parameters

    • thisArgument: Record<string, unknown>

    Returns MethodInvoker<I, O>