chore: Enforce a few house rules via eslint (#2539)
This commit is contained in:
committed by
dermotduffy
parent
5572ec728e
commit
921d45e577
@@ -1,4 +1,6 @@
|
||||
// Usage of this function needs to be justified with a comment.
|
||||
export const sleep = async (seconds: number) => {
|
||||
// This is the low-level delay primitive callers reach for instead of a raw timer.
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
await new Promise((r) => setTimeout(r, seconds * 1000));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user