On 04/06/2011 11:06 AM, Paolo Bonzini wrote:
> On 04/06/2011 10:56 AM, Holger Hans Peter Freyther wrote:
>> The number is treated as a second already. The result will make sure that the
>> internal blocks has been executed, on a slow system the 1s might be too low.
>
> No, I thought it was milliseconds.
>
> I think I made up my mind on the Delay :)
>
> Let's make this method Delay>>#value:onTimeoutDo:.
(Delay forSeconds: 3)
value: [the block to execute]
onTimeoutDo: [the block to handle on timeout?]
vs.
[
the block to execute.
] timeout: (Delay forSeconds: 3) do: [the block to handle]
I still like the BlockClosure extension more as for me it looks like the main
thing that is happening is the block and the timeout case is just secondary.
Are you settled on Delay>>#value:onTimeoutDo:?
_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk