API ReferenceGlobalsSinglePromiseFactory

# Class: SinglePromiseFactory

# Hierarchy

  • SinglePromiseFactory

# Implements

# Index

# Constructors

# Properties

# Methods

# Constructors

# constructor

+ new SinglePromiseFactory(creator: string): SinglePromiseFactory

Defined in packages/common-core/src/utils/single-promise-factory.ts:17

Parameters:

Name Type
creator string

Returns: SinglePromiseFactory

# Properties

# creator

creator: string

_Implementation of Context.creator_

Defined in packages/common-core/src/utils/single-promise-factory.ts:15

# Methods

# create

create<T>(promiseCategory: PROMISE_CATEGORY, promiseIdentifier: string, workToDo: function): Promise‹T›

Defined in packages/common-core/src/utils/single-promise-factory.ts:23

Type parameters:

T

Parameters:

promiseCategory: PROMISE_CATEGORY

promiseIdentifier: string

workToDo: function

▸ (resolve: function, reject: function): void

Parameters:

resolve: function

▸ (data?: T): void

Parameters:

Name Type
data? T

reject: function

▸ (error: Error): void

Parameters:

Name Type
error Error

Returns: Promise‹T›