Other async currencies, spent here directly. A CompletableFuture —
and anything else Quiescent recognizes: Future, another task —
returned from eval code is grounded like a task: the eval awaits it,
and its value is what the entry captures, with no adapter code.
core.async is the one explicit conversion, and only available when
the host system carries core.async.
Other async currencies, spent here directly. A `CompletableFuture` — and anything else Quiescent recognizes: `Future`, another task — returned from eval code is grounded like a task: the eval awaits it, and its value is what the entry captures, with no adapter code. core.async is the one explicit conversion, and only available when the host system carries core.async.
(from-cf v)Nothing to do: a CompletableFuture needs no conversion — return it,
and the task border grounds it. This exists as callable proof: it
settles a CF on another thread and returns it bare; evaluate
(from-cf 42) and what comes back is 42, not the future.
Nothing to do: a CompletableFuture needs no conversion — return it, and the task border grounds it. This exists as callable proof: it settles a CF on another thread and returns it bare; evaluate `(from-cf 42)` and what comes back is 42, not the future.
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 |