diff --git a/asynctimeout.js b/asynctimeout.js index ced4eea..dab865c 100644 --- a/asynctimeout.js +++ b/asynctimeout.js @@ -48,10 +48,10 @@ const example = async (_timeout) => { _timeout = _timeout || 100; // Wait 100 then alert "hi" - alert(await (new AsyncTimeout(() => "hi", _timeout)).timeout()); + console.log(await (new AsyncTimeout(() => "hi", _timeout)).timeout()); // Continuously wait 100 then alert "hi" - for await (const value of new AsyncTimeout(() => "hi forever", _timeout).interval()) { alert(value); } + for await (const value of new AsyncTimeout(() => "hi forever", _timeout).interval()) { console.log(value); } };