Liking cljdoc? Tell your friends :D

prpr.promise.lastcall


def-lastcall-fncljmacro

(def-lastcall-fn name & params-body)
source

lastcall-fncljmacro

(lastcall-fn name & params-body)
source

lastcall-fn*clj

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

lastcall-fn-implclj/s

(lastcall-fn-impl in-flight-atom fn-name params p)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close