36 " |
36 " |
37 ! |
37 ! |
38 |
38 |
39 documentation |
39 documentation |
40 " |
40 " |
41 Instances of Delay are used to suspend the execution of a process |
41 Instances of Delay are used to suspend the execution of a process |
42 (i.e. thread) for some time interval. |
42 (i.e. thread) for some time interval. |
43 Delays can be created either for some time-interval (seconds or milliseconds), |
43 Delays can be created either for some time-interval (seconds or milliseconds), |
44 or for delaying until a specific time has reached. |
44 or for delaying until a specific time has reached. |
45 Once created, a delay is waited upon with Delay>>wait. |
45 Once created, a delay is waited upon with Delay>>wait. |
46 |
46 |
47 Notice: due to delays (both within Unix AND within Smalltalk itself, |
47 Notice: due to delays (both within Unix AND within Smalltalk itself, |
48 the resumption time will ALWAYS be after the actual delay time. |
48 the resumption time will ALWAYS be after the actual delay time. |
49 (i.e. a Delay for n-millis will actually suspend for more than n milliseconds) |
49 (i.e. a Delay for n-millis will actually suspend for more than n milliseconds) |
50 |
50 |
51 Warning: |
51 Warning: |
52 currently, the implementation does not support delays longer than |
52 currently, the implementation does not support delays longer than |
53 a system specific maximum - future versions may remove this limitation. |
53 a system specific maximum - future versions may remove this limitation. |
54 For now, do not use delays longer than the value returned by |
54 For now, do not use delays longer than the value returned by |
55 OperatingSystem maximumMillisecondTimeDelta |
55 OperatingSystem maximumMillisecondTimeDelta |
56 |
56 |