[squeak-dev] The Trunk: Chronology-Core-mt.11.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Feb 13 13:46:49 UTC 2018


Marcel Taeumel uploaded a new version of Chronology-Core to project The Trunk:
http://source.squeak.org/trunk/Chronology-Core-mt.11.mcz

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

Name: Chronology-Core-mt.11
Author: mt
Time: 13 February 2018, 2:46:50.516993 pm
UUID: 60f877b7-27a3-44a5-8220-483429ebb9db
Ancestors: Chronology-Core-ul.10

Add a convenience message to wait on a duration. It is shorter than using Delay class >> #forDuration:.

=============== Diff against Chronology-Core-ul.10 ===============

Item was added:
+ ----- Method: Duration>>wait (in category 'squeak protocol') -----
+ wait
+ 	"Convert this duration in a delay and wait once. Return the created delay so that the client can wait on it again if needed.
+ 	
+ 	Do-it: 3 minutes wait"
+ 	
+ 	| delay |
+ 	delay := self asDelay.
+ 	delay wait.
+ 	^ delay!



More information about the Squeak-dev mailing list