New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Poll class, fix some tests, throttle polling. #6141
Commits on Apr 8, 2019
-
-
-
Add Poll class to automatically poll and exponentially back off of fa…
…iling poll requests.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Remove
_ready
and_isReady
and instead set _outstanding in the po……ll constructor.
-
-
Since connected is always available, make it a public attribute inste…
…ad of only passing it into the promise factory.
-
Audit disposed flag after every asynchronous action. Catch promise re…
…jection in dispose method.
-
-
#next can always return a call to schedule and rely on that function …
…to return the outstanding promise.
-
-
-
-
Remove
Poll.Next
concept and simply resolve #next and #refresh() pr……omises to the poll instance itself. Allows returned promises to be self-contained for following the chain. Emit ticks after promise resolution.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Make
interval
,jitter
,min
, andmax
(the polling frequency pa……rameters) editable.
-
-
Update
jitter
parameter to be a boolean | number and set its defaul……ts to 0 and 0.25 for false and true. Default to 0.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Remove concept of
readonly
and use a separate IPoll interface model……ed on Signal/ISignal.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Update the jitter to return a uniformly random value between base +- …
…(base*jitter), capped by the min and max values. The previous implementation would not be from a uniform distribution since it capped min/max after generating the random value.
-
-
-
-
-
-
Add test to verify
tick
promise resolves after everyticked
signa……l and before the next `ticked` signal in lock-step.
-
-
Merge pull request #24 from jasongrout/polling2
Clean up some of the kernel manager async and request logic.
-
Merge pull request #25 from jasongrout/polling3
Update terminal manager to be consistent with kernel/session manager async logic