Tracks in-flight abort IDs per statechart session for Fulcro load cancellation.
The tracker is an atom whose shape is:
{session-id {:abort-ids #{abort-id-1 abort-id-2 ...}
:aborting? false}}
All functions take the tracker atom as the first argument.
Tracks in-flight abort IDs per statechart session for Fulcro load cancellation.
The `tracker` is an atom whose shape is:
```
{session-id {:abort-ids #{abort-id-1 abort-id-2 ...}
:aborting? false}}
```
All functions take the tracker atom as the first argument.(aborting? tracker session-id)Returns true if session-id is in the aborting state.
Returns true if `session-id` is in the aborting state.
(clear-aborting! tracker session-id)Clear the aborting flag for session-id.
Clear the aborting flag for `session-id`.
(get-abort-ids tracker session-id)Returns the set of currently tracked abort IDs for session-id.
Returns the set of currently tracked abort IDs for `session-id`.
(register-abort-id! tracker session-id abort-id)Register abort-id as in-flight for session-id.
Register `abort-id` as in-flight for `session-id`.
(set-aborting! tracker session-id)Mark session-id as aborting. New loads will short-circuit.
Mark `session-id` as aborting. New loads will short-circuit.
(unregister-abort-id! tracker session-id abort-id)Remove abort-id from the in-flight set for session-id.
Remove `abort-id` from the in-flight set for `session-id`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |