webtasks.tasks

Asynchronous tasks for ClojureScript

add-task

(add-task chan)(add-task chan task)

add-task!

(add-task! chan task)

catch

(catch d error-handler)

chain

(chain d)(chain d e)(chain d e & fs)

closed?

(closed? ch)

connect

(connect a b)

deferred

(deferred)(deferred d)(deferred d success-fn)(deferred d success-fn error-fn)

deferred-persistent

(deferred-persistent id)

deferred-persistent?

(deferred-persistent? d)

deferred-prefix

deferred-transient?

(deferred-transient? d)

deferred?

(deferred? d)

error!

(error! d v)

error-fn-default

(error-fn-default v)

finally

(finally d final-fn)

get-all-deferreds

(get-all-deferreds)

get-deferred

(get-deferred d)

idle

(idle task chan value)

idle-task

initial-state

initialize

(initialize)

on-realized

(on-realized d success-fn)(on-realized d success-fn error-fn)

on-realized-default

(on-realized-default d success-fn-default)(on-realized-default d success-fn-default error-fn-default)

on-started

(on-started f)

on-stopping

(on-stopping f)

operation

(operation task chan value)

persistent-prefix

ready?

(ready? ch)

realize

(realize result d v)

remove-deferred!

(remove-deferred! d)

remove-task

(remove-task chan)

remove-task!

(remove-task! chan)

remove-task-by-id

(remove-task-by-id id)

restart

(restart)

set-deferred!

(set-deferred! d success-fn error-fn & [connect])

sleep

(sleep d msec)

start

(start)

state

stop

(stop)(stop cb)

success!

(success! d v & [no-retry])

success-fn-default

(success-fn-default v)

timeout

(timeout f)(timeout f msec)

timeout!

(timeout! d msec & [timeout-val])

transient-prefix

update-in-task

(update-in-task chan korks f v)

zip

(zip d)(zip d e)(zip d e & fs)