Simple wrapper for basic j.u.concurrent tasks (or future alternatives)
Simple wrapper for basic j.u.concurrent tasks (or future alternatives)
(submit! executor-service f)Submits the fn to specified executor, returns a Future
Submits the fn to specified executor, returns a Future
(executor type)(executor type
{:keys [thread-factory num-threads]
:or {num-threads 1 thread-factory (Executors/defaultThreadFactory)}})Returns ExecutorService.
type can be :single, :cached, :fixed or :scheduled, this matches the
corresponding Java instances
Returns ExecutorService. `type` can be :single, :cached, :fixed or :scheduled, this matches the corresponding Java instances
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 |