--- a/Semaphore.st Tue Jun 25 14:22:02 2019 +0200
+++ b/Semaphore.st Tue Jun 25 14:22:06 2019 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
"
COPYRIGHT (c) 1993 by Claus Gittinger
All Rights Reserved
@@ -1282,11 +1284,13 @@
"wait for the semaphore, but abort the wait after some time (seconds).
return the receiver if the semaphore triggered normal, nil if we return
due to a timeout.
- The seconds-argument may be a float (i.e. use 0.1 for a 100ms timeout).
+
+ The argument may be a time duration or the number of seconds as integer
+ or float (i.e. use 0.1 for a 100ms timeout).
With zero timeout, this can be used to poll a semaphore (returning
the receiver if the semaphore is available, nil if not).
However, polling is not the intended use of semaphores, though.
- If seconds is nil, wait without timeout."
+ If the argument is nil, wait without timeout (forever)."
<resource: #skipInDebuggersWalkBack>
@@ -1307,6 +1311,7 @@
"Modified: / 24-07-2017 / 21:15:39 / cg"
"Modified: / 30-05-2018 / 13:57:33 / Claus Gittinger"
"Modified: / 24-07-2018 / 16:28:36 / Stefan Vogel"
+ "Modified (comment): / 25-06-2019 / 14:21:43 / Claus Gittinger"
!
waitWithTimeoutMs:milliSeconds