Futura Api Documentation

Version: 0.3.0

futura.executor

A basic abstraction for executor services.

*default*

dynamic

cached

(cached)(cached factory)

A cached thread executor constructor.

execute

(execute task)(execute executor task)

Execute a task in a provided executor.

A task is a plain clojure function or jvm Runnable instance.

fixed

(fixed n)(fixed n factory)

A fixed thread pool constructor.

IExecutor

protocol

single-thread

(single-thread)(single-thread factory)

A single thread executor constructor.

submit

(submit task)(submit executor task)

Submit a task to be executed in a provided executor and return a promise that will be completed with the return value of a task.

A task is a plain clojure function.