UNPKG

@esutils/delay

Version:

A minimal delay/sleep library that implemented in `typescript`

12 lines (9 loc) 228 B
import { delay } from '@esutils/delay'; describe('delay in typescript', () => { it('function type', () => { expect(typeof delay).toBe('function'); }); it('function call', async () => { await delay(10); }); });