#REFACTORING by stefan
class: ProcessorScheduler
changed: #addTimedBlock:for:afterMilliseconds:
--- a/ProcessorScheduler.st Wed Feb 07 12:31:53 2018 +0100
+++ b/ProcessorScheduler.st Wed Feb 07 19:50:23 2018 +0100
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
"
COPYRIGHT (c) 1993 by Claus Gittinger
All Rights Reserved
@@ -2999,15 +2997,15 @@
(i.e. it will trigger only once).
Returns an ID, which can be used in #removeTimeoutWithID:"
- |now then id|
+ |now then|
now := OperatingSystem getMillisecondTime.
then := OperatingSystem millisecondTimeAdd:now and:delta.
- id := self addTimedBlock:aBlock for:aProcess atMilliseconds:then.
- ^ id
+ ^ self addTimedBlock:aBlock for:aProcess atMilliseconds:then.
"Modified: / 18-07-2017 / 14:04:31 / cg"
"Modified (comment): / 20-07-2017 / 16:43:29 / cg"
+ "Modified: / 07-02-2018 / 17:25:56 / stefan"
!
addTimedBlock:aBlock for:aProcess afterSeconds:delta