The Inbox: Kernel-dtl.1683.mcz

[email protected]
Newsgroups gmane.comp.lang.smalltalk.squeak.general
Message-ID <[email protected]>
A new version of Kernel was added to project The Inbox:
http://source.squeak.org/inbox/Kernel-dtl.1683.mcz

==================== Summary ====================

Name: Kernel-dtl.1683
Author: dtl
Time: 29 April 2026, 8:17:21.149527 am
UUID: 5e311210-a417-4386-b97e-5b1e3c1b6e7f
Ancestors: Kernel-ct.1682

Restore class BrokenPromise, which was removed between Kernel-eem.1615 and Kernel-eem.1613 in the update stream. BrokenPromise is expected to be deprecated but is currnetly required by external packages.

=============== Diff against Kernel-ct.1682 ===============

Item was added:
+ Error subclass: #BrokenPromise
+ 	instanceVariableNames: 'promise'
+ 	classVariableNames: ''
+ 	poolDictionaries: ''
+ 	category: 'Kernel-Exceptions'!
+ 
+ !BrokenPromise commentStamp: 'tonyg 2/17/2017 13:53' prior: 0!
+ I am signalled when, during a Promise>>wait, the promise is rejected.
+ 	promise:		the promise itself.
+ !

Item was added:
+ ----- Method: BrokenPromise>>defaultAction (in category 'priv handling') -----
+ defaultAction
+ 	self messageText: 'Promise was rejected'.
+ 	^super defaultAction!

Item was added:
+ ----- Method: BrokenPromise>>error (in category 'accessing') -----
+ error
+ 
+ 	^ promise ifNotNil: [promise error]!

Item was added:
+ ----- Method: BrokenPromise>>isResumable (in category 'priv handling') -----
+ isResumable
+ 	^ true!

Item was added:
+ ----- Method: BrokenPromise>>messageText (in category 'accessing') -----
+ messageText
+ 
+ 	^ messageText ifNil:
+ 		[self error ifNotNil: [:error |
+ 			error asString]]!

Item was added:
+ ----- Method: BrokenPromise>>promise (in category 'accessing') -----
+ promise
+ 	^ promise!

Item was added:
+ ----- Method: BrokenPromise>>promise: (in category 'accessing') -----
+ promise: aPromise
+ 	promise := aPromise!

Squeak-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.