|
From: | Holger Hans Peter Freyther |
Subject: | [Help-smalltalk] Timeouts for SharedQueue and Semaphore |
Date: | Wed, 10 Nov 2010 00:51:36 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Fedora/3.1.6-1.fc14 Lightning/1.0b2 Thunderbird/3.1.6 |
Hi all, would it be possible to add a waitTimeSeconds/MSecs to Semaphore? Maybe even to SharedQueue? I would like to write code like the one below but I am a bit at a loss of how to realize it without spawning many processes. [ self sendSomeData c := queue nextTimeout: 3. ] on: TimeOut do: [:e | ... ] thanks
[Prev in Thread] | Current Thread | [Next in Thread] |