API Reference › Globals › Waiter
# Class: Waiter <T>
# Type parameters
▪ T
# Hierarchy
- Waiter
# Index
# Methods
# Methods
# create
▸ create(): Promise‹T›
Defined in packages/common-core/src/utils/waiter.ts:9
Returns: Promise‹T›
# reject
▸ reject<T>(reason?
: any): Promise‹T›
Defined in packages/common-core/src/utils/waiter.ts:23
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
reason? | any |
Returns: Promise‹T›
# resolve
▸ resolve(value
: T | PromiseLike‹T›): Promise‹T›
Defined in packages/common-core/src/utils/waiter.ts:15
Parameters:
Name | Type |
---|---|
value | T | PromiseLike‹T› |
Returns: Promise‹T›