Safe Haskell | None |
---|---|
Language | Haskell2010 |
Concurrency for Shellmate programs.
Documentation
A future is a computation which is run in parallel with a program's main thread and which may at some later point finish and return a value.
Note that future computations are killed when their corresponding Future
is garbage collected. This means that a future should *always* be
await
ed at some point or otherwise kept alive, to ensure that the
computation finishes.
Note that all any code called in a future using unsafeLiftIO
must
refrain from using environment variables, standard input/output, relative
paths and the current working directory, in order to avoid race
conditions. Code within the Shell
monad, code imported using liftIO
and external processes spawned from within Shell
is perfectly safe.