A simple promise based timeout
A simple promise based timeout.
Example
import { sleep } from '@stater/sleep'; await sleep(1000);