mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-06 15:40:29 +02:00
Shrink the futures entry, details now in the manual.
This commit is contained in:
parent
e418bd7c12
commit
18f7ef3859
1 changed files with 3 additions and 20 deletions
23
NEWS
23
NEWS
|
@ -278,27 +278,10 @@ Returns the "effective" version number. This is just the normal full
|
||||||
version string without the final micro-version number. See "Changes
|
version string without the final micro-version number. See "Changes
|
||||||
to the distribution" above.
|
to the distribution" above.
|
||||||
|
|
||||||
** Futures
|
** Futures: future, make-future, future-ref
|
||||||
|
|
||||||
Futures is a way of providing an alternative evaluation policy, very
|
Futures are like promises, but begun immediately in a new thread. See
|
||||||
similar in principle to "promises". Like promises, futures allow the
|
the "Futures" section in the reference manual.
|
||||||
main process to continue instantly, but while promises postpone
|
|
||||||
evaluation ("lazy" evaluation) until the value is requested, futures
|
|
||||||
immediately starts evaluation in a parallel thread.
|
|
||||||
|
|
||||||
Futures are good when you want to express that "I'll need the value of
|
|
||||||
this computation sometime soon" and want to allow processing to go on
|
|
||||||
in the background until that time arrives.
|
|
||||||
|
|
||||||
** New syntax: future FORM
|
|
||||||
|
|
||||||
Begin evaluation of FORM in a parallel thread and return the future
|
|
||||||
immediately. (Akin to 'delay'.)
|
|
||||||
|
|
||||||
** New procedure: future-ref FUTURE
|
|
||||||
|
|
||||||
Return the computed value of the future. Wait if the computation is
|
|
||||||
not finished. (Akin to 'force'.)
|
|
||||||
|
|
||||||
** New syntax: parallel FORM ...
|
** New syntax: parallel FORM ...
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue