[squeak-dev] The Trunk: Chronology-Core-eem.63.mcz
commits at source.squeak.org
commits at source.squeak.org
Wed Dec 2 19:42:15 UTC 2020
Eliot Miranda uploaded a new version of Chronology-Core to project The Trunk:
http://source.squeak.org/trunk/Chronology-Core-eem.63.mcz
==================== Summary ====================
Name: Chronology-Core-eem.63
Author: eem
Time: 2 December 2020, 11:42:13.044649 am
UUID: 713cef96-205d-4f67-95f1-cabd0bb1b3f3
Ancestors: Chronology-Core-mt.62
Nicer code for a couple of Duration methods...
I'm doing this to help me remember 5 seconds wait et al...
=============== Diff against Chronology-Core-mt.62 ===============
Item was changed:
----- Method: Duration>>asDelay (in category 'squeak protocol') -----
asDelay
+ ^Delay forMilliseconds: self asMilliSeconds
- ^ Delay forDuration: self
!
Item was changed:
----- Method: Duration>>wait (in category 'squeak protocol') -----
wait
+ "Convert this duration in a delay and wait once. Answer the created delay so that the client can wait on it again if needed."
- "Convert this duration in a delay and wait once. Return the created delay so that the client can wait on it again if needed.
+ "[3 seconds wait] timeToRun"
- Do-it: 3 minutes wait"
+ ^self asDelay wait!
- | delay |
- delay := self asDelay.
- delay wait.
- ^ delay!
More information about the Squeak-dev
mailing list
|