Hi Glyph:
Message: 3
Date: Tue, 13 Dec 2011 23:45:54 -0500
From: Glyph
Subject: Re: [Twisted-Python] How to Solve a Problem Like Santa with
Stackless and Twisted
To: Twisted general discussion
Message-ID:
Content-Type: text/plain; charset="iso-8859-1"
On Dec 13, 2011, at 2:04
On 12/14/2011 05:45 AM, Glyph wrote:
On Dec 13, 2011, at 2:04 PM, Andrew Francis wrote:
Now at time T, there are eight reindeer and two elves ready. At T+1, an additional reindeer and
elf are ready (their timestamps are the same, timer resolution notwithstanding). However the
Twisted reactor
On Dec 13, 2011, at 2:04 PM, Andrew Francis wrote:
> Now at time T, there are eight reindeer and two elves ready. At T+1, an
> additional reindeer and elf are ready (their timestamps are the same, timer
> resolution notwithstanding). However the Twisted reactor will serialise the
> events and
From: shhgs
To: Andrew Francis ; Twisted general discussion
Sent: Monday, December 12, 2011 11:15 PM
Subject: Re: [Twisted-Python] How to Solve a Problem Like Santa with Stackless
and Twisted
Hi Shhgs:
>defer.DeferredList(reindeers.values()).addCallback(lambda _ :
>True).addCa
reindeers = dict( rudolf = defer.Deferred()
,
)
arrivedElvs = []
threeElvsArrived = defer.Deferred()
def onReindeerArrive(who):
reindeer[who].callback(True)
def onElvArrive(elv):
global arrivedElvs
if len(arrivedElvs) <= 1:
arrivedElvs.appe