(lastcall-fn* def-sym fn-name params-body)a lastcall-fn is a fn which returns a promise of its result, and tracks invocations such that if the results of multiple invocations are unresolved at any point in time, only the last invocation will return a result - all the others will error with [:cancelled {:fn <fn-name> :params <params>}]
provides a no-args version of the fn which will cancel any outstanding unresolved promises (where cancel means they will return [:cancelled ...] errors, nothing more - they will not be interrupted)
a lastcall-fn is a fn which returns a promise of its result, and tracks
invocations such that if the results of multiple invocations are
unresolved at any point in time, only the last invocation will return
a result - all the others will error with
[:cancelled {:fn <fn-name> :params <params>}]
provides a no-args version of the fn which will cancel any outstanding
unresolved promises (where cancel means they will return [:cancelled ...]
errors, nothing more - they will not be interrupted)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 |