|
Smalltalk/X WebserverDocumentation of class 'Promise': |
|
|
Class: PromiseInheritance:Object | +--Promise | +--TimedPromise
Description:When created, a promise will start to evaluate its block in the background, and promise to deliver the value of this computation, when asked for it via #value. Promises can be used for background computations, which automatically block the user of the result when that result is needed, unless the computation finished in the meanwhile. See also Block>>promise and Lazy/Future in the goodies directory. Class protocol:instance creation
Instance protocol:accessing
Examples:|p| p := [10000 factorial] promise. Transcript showCR:'doing something else'. p value |
|
|
ST/X 6.1.1; WebServer 1.620 at exept:8081; Tue, 22 May 2012 21:48:48 GMT
|