Skip to content
Snippets Groups Projects
Unverified Commit ef63ac84 authored by Xiao Gui's avatar Xiao Gui
Browse files

fix lint

parent 4e71b439
No related branches found
No related tags found
No related merge requests found
......@@ -425,6 +425,7 @@ export function wait(ms: number){
* @param predicate
*/
export async function waitFor(predicate: () => boolean) {
// eslint-disable-next-line no-constant-condition
while (true) {
if (predicate()) break
await wait(16)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment