Tools for combining Twisted Deferreds
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
txapply
.gitattributes
.gitignore
.travis.yml
CREDITS
LICENSE
MANIFEST.in
README.md
setup.cfg
setup.py
tox.ini
versioneer.py

README.md

txapply

A little library for calling functions with Deferred arguments.

Example

def function(some, name=None):
    print('Got {} (name={})'.format(some, name))
    return name


def finished(value):
    print('Finished: {}'.format(value))
    reactor.stop()

result = txapply(function, some_deferred, name=other_deferred)
result.addCallback(finished)

Warning

This is unreleased, unsupported software that makes no claims to backwards compatibility or correctness.

In particular, I dislike the name txapply and am likely to change it.

License

Copyright (c) Twisted Matrix Laboratories.

Made available under the MIT license. See LICENSE for details.