![]() |
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 libbasic2. Class protocol:instance creation
Instance protocol:accessing
Examples:|p| p := [10000 factorial] promise. Transcript showCR:'doing something else'. p value |
|||
|
ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Mon, 29 May 2023 12:59:12 GMT
|