Skip to content

Commit cf6ab64

Browse files
authored
Updated documentation of Delayer
1 parent b8f59d7 commit cf6ab64

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Delayer.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ import assert from 'nanoassert'
1313
*
1414
* When using Delayer your code should contain frequent calls to `await delayer.checkDelay()`, usually
1515
* at the end of every loop. `checkDelay()` will check the amount of time that ellasped since the last time
16-
* your called it. If the amount of time is below the trigger time it returns an already resolved promise
17-
* and the remaining computation will be able to continue processing in a microtask. If not it will call
18-
* the `delay()` function that will retrigger the operation in a later task of the event loop.
16+
* it triggered a new task in the event loop. If the amount of time is below the trigger time it returns
17+
* an already resolved promise and the remaining computation will be able to continue processing in a
18+
* microtask. If not it will call the `delay()` function that will retrigger the operation in a later task
19+
* of the event loop.
1920
*
2021
* @example
2122
* import { Delayer } from 'modern-async'

0 commit comments

Comments
 (0)