콘텐츠로 이동
한국어

after

이 콘텐츠는 아직 번역되지 않았습니다.

after<T>(delayMs, factory, scheduler?): CancellablePromise<T>

Defined in: src/pattern/After.ts:22

T

number

() => Promise<T>

Scheduler | null = null

Where the delay is armed. Omitted, a host timer is used and the delay is real; pass system.scheduler and a ManualScheduler lets a test advance past it instead of waiting it out (#1424). Either way a delay longer than one host timer holds (~24.9 days) is waited out in full.

CancellablePromise<T>