Module Async

This module is undocumented. This is a list of its definitions.

DAYS :: TimeUnit

Days.

HOURS :: TimeUnit

Hours.

MICROSECONDS :: TimeUnit

Microseconds.

MILLISECONDS :: TimeUnit

Milliseconds.

NANOSECONDS :: TimeUnit

Nanoseconds.

SECONDS :: TimeUnit

Seconds.

pmap :: (a -> <Proc> b) -> [a] -> <Proc> [b]

Like map, but applies the given function to the elements of the list in parallel.

runAsync :: <Proc> a -> <Proc> ()

Executes the given expression in a background thread and returns immediately. The thread gets a derived copy of the current SCL context. An exception thrown by the expression is logged, not propagated to the caller.

schedule :: <Proc> a -> Long -> TimeUnit -> <Proc> Future a

schedule f delay unit executes f once after the given delay.

scheduleAtFixedRate :: <Proc> a -> Long -> Long -> TimeUnit -> <Proc> Future a

scheduleAtFixedRate f initialDelay period unit starts executing f periodically after initialDelay, aiming at a constant rate of one execution per period. Both times are given in the given time unit.

scheduleWithFixedDelay :: <Proc> a -> Long -> Long -> TimeUnit -> <Proc> Future a

scheduleWithFixedDelay f initialDelay period unit starts executing f periodically after initialDelay, leaving period of idle time between the end of one execution and the beginning of the next. Both times are given in the given time unit.