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

# Module Driver

source code

Classes | [hide private]
ShortCircuit
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()
        a = driver.next()
        print "Thing 1 is",
        yield thing2()
        b = driver.next()
        print "Thing 2 is",
        driver.finish(a + b)

    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$
      '''