Macros for creating spans around Manifold deferreds. To use this namespace,
add dependency manifold/manifold
.
Macros for creating spans around Manifold deferreds. To use this namespace, add dependency `manifold/manifold`.
(async-bound-d-span span-opts & body)
Asynchronously starts a new span, sets the bound context to the new context
containing the span and evaluates body
which is expected have a deferred
value. The bound context is restored to its original value and the span is
ended when the body
deferred yields a value. Returns a deferred that
yields the same value.
Asynchronously starts a new span, sets the bound context to the new context containing the span and evaluates `body` which is expected have a deferred value. The bound context is restored to its original value and the span is ended when the `body` deferred yields a value. Returns a deferred that yields the same value.
(d-span-binding [context span-opts] & body)
Asynchronously starts a new span, binds context
to the new context
containing the span and evaluates body
which is expected have a deferred
value. The span is ended when the body
deferred yields a value. Returns a
deferred that yields the same value.
Asynchronously starts a new span, binds `context` to the new context containing the span and evaluates `body` which is expected have a deferred value. The span is ended when the `body` deferred yields a value. Returns a deferred that yields the same value.
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 |