Skip to content
Snippets Groups Projects
Commit 46379331 authored by Vladimir Sedach's avatar Vladimir Sedach
Browse files

Added documentation for *default-future-type* to readme

parent 0558f0da
No related branches found
No related tags found
No related merge requests found
......@@ -55,6 +55,14 @@ function pcall (thunk &optional (future-type *default-future-type*)) => future
The function is called in an unspecified dynamic environment.
special variable *default-future-type*
One of :eager, :speculative (default) or :lazy. If eager, any newly
created futures start their computation immediately. If speculative,
newly created futures are computed when thread pool threads are
available, in FIFO future creation order. If lazy, newly created
futures are not computed until asked to yield their values.
function ready-to-yield? (future) => nil or non-nil
Returns non-nil if the future values have been computed, nil otherwise.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment