Package ZenUtils :: Module Driver
[hide private]
[frames] | no frames]

Module Driver

source code

Driver.py

Run generators that produce Deferreds.

twisted.flow has something like this, except I cannot understand it.

$Id$


Version:  

Classes [hide private]
  Driver
Walk an iterable that returns a deferred.
Functions [hide private]
 
drive(callable)
Typical use of Driver class:...
source code
 
driveLater(secs, callable)
Drive the callable at a later time
source code
 
test() source code
Variables [hide private]
  __doc__ = '''Driver...
Function Details [hide private]

drive(callable)

source code 
Typical use of Driver class:

def walk(driver):
    yield thing1()
    print "Thing 1 is", driver.next()
    yeild thing2()
    print "Thing 2 is", driver.next()

drive(walk)


Variables Details [hide private]

__doc__

Value:
'''Driver.py

Run generators that produce Deferreds.

twisted.flow has something like this, except I cannot understand it.

$Id$
'''