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 is a website building & hosting documentation for Clojure/Script libraries
× close