The Trunk: Chronology-Core-mt.11.mcz

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

The Trunk: Chronology-Core-mt.11.mcz

Marcel Taeumel uploaded a new version of Chronology-Core to project The Trunk:

==================== 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!