Liking cljdoc? Tell your friends :D

com.fulcrologic.statecharts.integration.fulcro.abort-tracker

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.
raw docstring

aborting?clj/s

(aborting? tracker session-id)

Returns true if session-id is in the aborting state.

Returns true if `session-id` is in the aborting state.
sourceraw docstring

clear-aborting!clj/s

(clear-aborting! tracker session-id)

Clear the aborting flag for session-id.

Clear the aborting flag for `session-id`.
sourceraw docstring

get-abort-idsclj/s

(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`.
sourceraw docstring

register-abort-id!clj/s

(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`.
sourceraw docstring

set-aborting!clj/s

(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.
sourceraw docstring

unregister-abort-id!clj/s

(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`.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close