Liking cljdoc? Tell your friends :D

scoped-values-clj.core


->DerefableScopedValueclj

(->DerefableScopedValue)
source

call*clj

(call* carrier thunk)
source

defscopedcljmacro

(defscoped sym & args)
source

deref2clj

source

get-thread-scopeclj

(get-thread-scope)

Captures the current scope (if any). Returns a map of Var => bound-value.

Captures the current scope (if any).
Returns a map of Var => bound-value.
sourceraw docstring

scoped-fncljmacro

(scoped-fn & fntail)

Like clojure.core/bound-fn, but for ScopedValue (instead of ThreadLocal).

Like `clojure.core/bound-fn`, but for ScopedValue (instead of ThreadLocal).
sourceraw docstring

scoped-fn*clj

(scoped-fn* f)

Like clojure.core/bound-fn*, but for ScopedValue (instead of ThreadLocal).

Like `clojure.core/bound-fn*`, but for ScopedValue (instead of ThreadLocal).
sourceraw docstring

scoped-futurecljmacro

(scoped-future & body)

Like clojure.core/future, but also conveys the current thread scope.

Like `clojure.core/future`, but also conveys the current thread scope.
sourceraw docstring

scoped-future-callclj

(scoped-future-call f)

Like clojure.core/future-call, but also conveys the current thread scope.

Like `clojure.core/future-call`, but also conveys the current thread scope.
sourceraw docstring

SCOPED-VARSclj

source

scopingcljmacro

(scoping bindings & body)

Like clojure.core/binding, but forScopedValue, rather thanThreadLocal`.

Like `clojure.core/binding, but for `ScopedValue`, rather than `ThreadLocal`.
sourceraw docstring

unwrap*clj

(unwrap* dsv)
source

with-scopecljmacro

(with-scope scope & body)

Executes <body> within the context of the provided <scope> - e.g. captured by current-scope. Useful for passing down scope to child threads. The pattern is as follows: (scoping [...] ;; set up initial bindings (let [parent (current-scope)] ;; fetch current scope in this thread (future (with-scope parent ;; restore parent's scope in child thread (current-scope))))) ;; inspect current-scope in child thread (equals parent)

Executes <body> within the context of the
provided <scope> - e.g. captured by `current-scope`.
Useful for passing down scope to child threads.
The pattern is as follows:
(scoping [...]                  ;; set up initial bindings
  (let [parent (current-scope)] ;; fetch current scope in this thread
    (future
      (with-scope parent        ;; restore parent's scope in child thread
        (current-scope)))))     ;; inspect current-scope in child thread (equals parent)
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