|
From: | Paolo Bonzini |
Subject: | Re: [Help-smalltalk] Timeouts for BlockClosures |
Date: | Wed, 06 Apr 2011 11:29:01 +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:16 AM, Holger Hans Peter Freyther wrote:
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:?
Yes, as the primary method. You can add an extension on BlockClosure yourself.
Squeak has BlockClosure>>#valueWithin:onTimeoutDo: but it accepts a Duration.
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |