Class Waitress<TPayload, TMatcher>
Constructors
Methods
reject
- reject(payload: TPayload, message: string): boolean
Returns boolean
remove
- remove(ID: number): void
Returns void
resolve
- resolve(payload: TPayload): boolean
Returns boolean
waitFor
- waitFor(
matcher: TMatcher,
timeout: number,
): { ID: number; start: () => { ID: number; promise: Promise<TPayload> } } Returns { ID: number; start: () => { ID: number; promise: Promise<TPayload> } }