Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 46379331900e97c2938695d7b9b537a107c6e8ee 1 parent 0558f0d
@vsedach authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 README
View
8 README
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.