export async function sleep(time: number): Promise { return new Promise((resolve: Function, reject: Function) => { setTimeout(resolve, time); }); }