@intentic/base 1.240.0 → 1.243.0
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 +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,7 +28,9 @@ and a package that offers them as one thing invites being treated as a junk draw
|
|
|
28
28
|
- **`async`**: the four shapes of "don't do that again yet", named so the choice between them is visible:
|
|
29
29
|
`Delayer` restarts its clock on every call, `Coalescer` opens a window on the first call and lets later ones
|
|
30
30
|
join it, `SingleFlight` shares one run per key among concurrent callers, and `retry` is the loop with the
|
|
31
|
-
delay in it.
|
|
31
|
+
delay in it. Under them sit the three primitives every reconnect loop and readiness wait was hand-rolling
|
|
32
|
+
beside its own `setTimeout`-in-a-promise: `sleep` (interruptible, because a pause a teardown cannot cut
|
|
33
|
+
short is a teardown that waits for it), `pollUntil`, and `createBackoff`.
|
|
32
34
|
|
|
33
35
|
## Delayer or Coalescer
|
|
34
36
|
|