|
From: | Paolo Bonzini |
Subject: | Re: [Help-smalltalk] Timeouts for BlockClosures |
Date: | Wed, 06 Apr 2011 11:42:15 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7 |
On 04/06/2011 11:35 AM, Holger Hans Peter Freyther wrote:
> Yes, as the primary method. You can add an extension on BlockClosure yourself. > > Squeak has BlockClosure>>#valueWithin:onTimeoutDo: but it accepts a Duration. >drat, I thought I invented something. Should we do something similar?
No, accepting a Duration is clearly wrong because it doesn't allow untilMilliseconds waits.
Implement this as part of delay, provide syntactic sugar for BlockClosures (myself)?
Yes, thanks for putting up with me. :) Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |