Documentation of class 'Promise':
Object | +--Promise | +--TimedPromise
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
|p| p := [10000 factorial] promise. Transcript showCR:'doing something else'. p value
ST/X 184.108.40.206; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Mon, 29 May 2023 12:59:12 GMT