mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-20 15:31:37 +01:00
Fix editor selection/cursor and lint errors
This commit is contained in:
1 parent
c7620e90a1
commit
017de296a0
26 files changed
+1633
-595
No files matched your search
@@ -10,10 +10,12 @@ export async function minPromiseMillis<T>(promise: Promise<T>, millis: number) {
|
||||
result = await promise;
|
||||
} catch (e) {
|
||||
err = e;
|
||||
const delayFor = millis - (Date.now() - start);
|
||||
await sleep(delayFor);
|
||||
throw err;
|
||||
}
|
||||
|
||||
const delayFor = millis - (Date.now() - start);
|
||||
await sleep(delayFor);
|
||||
if (err) throw err;
|
||||
else return result;
|
||||
return result;
|
||||
}
|
||||
Reference in new issue
Block a user