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

Module ZenUtils.Driver

Driver.py

Run generators that produce Deferreds.

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

$Id$
Classes
Driver Walk an iterable that returns a deferred.

Function Summary
  drive(callable)
Typical use of Driver class:...
  driveLater(secs, callable)
Drive the callable at a later time
  test()

Variable Summary
str __version__ = ''

Function Details

drive(callable)

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)

driveLater(secs, callable)

Drive the callable at a later time

Variable Details

__version__

Type:
str
Value:
''                                                                     

Generated by Epydoc 2.1 on Thu Aug 16 09:55:11 2007 http://epydoc.sf.net