svn: r16991

This commit is contained in:
Robby Findler 2009-11-23 16:53:39 +00:00
parent ff04d114f7
commit e461f42ad3
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,35 @@
#lang scribble/doc
@title{@bold{Futures}: Fine-grained Parallelism}
@; ----------------------------------------------------------------------
@(require scribble/manual
scribble/urls
scribble/struct
scheme/class
(for-label scheme/base
scheme/gui/base
scheme/class
scheme/contract))
@; ----------------------------------------------------------------------
PLT's future support is only enabled if you pass @tt{--enable-futures} to @tt{configure} when
you build PLT (and that build currently only works with @tt{mzscheme}, not with @tt{mred}).
@defmodule['#%futures]{}
@defproc[(future [thunk (-> any)]) future?]{
Starts running @scheme[thunk] in parallel.
}
@defproc[(touch [f future?]) any]{
Returns the value computed in the future @scheme[f], blocking
to let it complete if it hasn't yet completed.
}
@defproc[(future? [x any/c]) boolean?]{
Returns @scheme[#t] if @scheme[x] is a future.
}

View File

@ -0,0 +1,3 @@
#lang setup/infotab
(define scribblings '(("futures.scrbl" ())))