Options
All
  • Public
  • Public/Protected
  • All
Menu

threadedclass

Index

Type aliases

MemUsageReport: MemUsageReportInner & { description: string }
MemUsageReportInner: NodeJS.MemoryUsage | WebWorkerMemoryUsage | { error: string }
Promisify<T>: { [ K in keyof T]: PromisifyProperty<T[K], K> }

Type parameters

  • T

ThreadedClass<T>: Promisify<T>

Type parameters

  • T

Variables

ThreadedClassManager: ThreadedClassManagerClass = ...

Functions

  • Returns an asynchronous version of the provided class

    Type parameters

    • T

    • TCtor: new (...args: any) => T

    Parameters

    • orgModule: string

      Path to imported module (this is what is in the require('XX') function, or import {class} from 'XX'} )

    • orgExport: string

      Name of export in module

    • constructorArgs: CtorArgs<TCtor>

      An array of arguments to be fed into the class constructor

    • configOrg: ThreadedClassConfig = {}

    Returns Promise<ThreadedClass<T>>

Generated using TypeDoc