necessary 11.0.46 → 11.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -832,7 +832,7 @@ const line = "${name}, aged ${age}.",
|
|
|
832
832
|
- `eventually()`
|
|
833
833
|
- `repeatedly()`
|
|
834
834
|
|
|
835
|
-
These functions generally take either
|
|
835
|
+
These functions generally take either an operation or an array of operations, an operation being a function that mutates a context rather than returning a value. They also take a `done()` function and an optional `context` argument. They all pass a `next()` function to the operations followed by the `done()` function, the `context` and then an `index` argument. Operations can call the `done()` function instead of the `next()` function in order to terminate early.
|
|
836
836
|
|
|
837
837
|
* The `whilst()` function takes a single operation, which it calls each time the operation invokes the given `next()` function or until the operation invokes the given `done()` function. The operation can also force termination by returning a truthy value, in which case it must *not* call the given `next()` or `done()` functions. In the example below the operation will be executed ten times:
|
|
838
838
|
|
package/package.json
CHANGED