Local Promises - Eventual Use and Examples

Then you can explore local promises and eventual sending

But...One of them there smaller mysteries appears...

Due to eventuality, a straight (self #assert: false) will not work, for some reason. Eventual Metaphysics.

big := (42 eventual * 10)
	then: [:x | x raisedTo: 10].
self assert: big isPromise.
assertion := big then: [:x | (big = 170801981216778240000000000)
	ifTrue: [true]
	ifFalse: [self error: 'bad eventual result']].
assertion -> big.

Last updated