--- a/Promise.st Fri May 12 14:35:26 1995 +0200
+++ b/Promise.st Tue May 16 19:11:07 1995 +0200
@@ -1,3 +1,15 @@
+"
+ COPYRIGHT (c) 1995 by Claus Gittinger
+ All Rights Reserved
+
+ This software is furnished under a license and may be used
+ only in accordance with the terms of that license and with the
+ inclusion of the above copyright notice. This software may not
+ be provided or otherwise made available to, or used by, any
+ other person. No title to or ownership of the software is
+ hereby transferred.
+"
+
'From Smalltalk/X, Version:2.10.5 on 29-apr-1995 at 2:28:49 am'!
Object subclass:#Promise
@@ -7,6 +19,40 @@
category:'Kernel-Processes'
!
+!Promise class methodsFor:'documentation'!
+
+copyright
+"
+ COPYRIGHT (c) 1993 by Claus Gittinger
+ All Rights Reserved
+
+ This software is furnished under a license and may be used
+ only in accordance with the terms of that license and with the
+ inclusion of the above copyright notice. This software may not
+ be provided or otherwise made available to, or used by, any
+ other person. No title to or ownership of the software is
+ hereby transferred.
+"
+!
+
+version
+"
+$Header: /cvs/stx/stx/libbasic2/Promise.st,v 1.2 1995-05-16 17:10:55 claus Exp $
+"
+!
+
+documentation
+"
+ 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.
+"
+! !
+
!Promise class methodsFor:'instance creation'!
value:aBlock priority:aPrio