You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When putting the result deferred `d` in an error state, deferred returned by `chain` would be
detected as a dropped error because it's only used to attach a side-effecting callback for
cancelling the timeout. The fix then is to use `on-realized` instead to attach a handler for both
cases. As a consequence, timeouts are now also properly cancelled when the result deferred is put in
an error state, freeing up resources in a more timely fashion.
This fixes one of the causes of clj-commons/aleph#766, as well as 2 of the
3 dropped errors in `manifold.go-off-test`.
Also, add dedicated tests for `d/timeout!`.
0 commit comments