[stdlib-sig] futures - a new package for asynchronous execution
solipsis at pitrou.net
Sat Nov 7 02:40:04 CET 2009
> To Antoine's Twisted comment, I don't see a direct comparison. From my
> understanding Twisted's Deferred objects are ways to have callbacks
> executed once an async event occurs, not to help execute code
Well, waiting for concurrently executing code to terminate *is* a case
of waiting for an async event to happen.
Deferred objects are a generic mechanism to chain reactions to
termination or failure of code. Whether the event your Deferred reacts
to is "async" or not is really a matter of how you use it (and of how
you define "async" -- perhaps you meant "I/O" but Deferreds are not
specialized for I/O).
More information about the stdlib-sig