Macros for creating spans around core.async channels that are settled with
a single value, either a result or an exception. To use this namespace, add
dependency org.clojure/core.async
.
Macros for creating spans around core.async channels that are settled with a single value, either a result or an exception. To use this namespace, add dependency `org.clojure/core.async`.
(async-bound-chan-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 channel
value. The bound context is restored to its original value and the span is
ended when the body
channel is settled (a result or exception is put on
the channel). Returns a channel that settles with 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 channel value. The bound context is restored to its original value and the span is ended when the `body` channel is settled (a result or exception is put on the channel). Returns a channel that settles with the same value.
(chan-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 channel
value. The span is ended when the body
channel is settled (a result or
exception is put on the channel). Returns a channel that settles with 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 channel value. The span is ended when the `body` channel is settled (a result or exception is put on the channel). Returns a channel that settles with 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 |