Using Twisted Deferreds
While the documentation about deferreds is good, it is still not enough for many. In this interactive tutorial, I will cover both the basics of deferreds and many non-trivial use-cases, with discussion of various approaches. Common mistakes, gotchas and other issues will be explained, as well as good idioms and techniques to use deferreds without pain. Deferreds bring asynchronous APIs the clarity and programming power that is sometimes lost when using event-based programming. They are an idea taken from many other programming languages, and made into a Pythonic solution
If you are using Twisted, or would like to use Twisted, this tutorial can help you with one of the most subtle issues inherent in its APIs - Deferreds.
Presenter
Moshe Zadka is a full-time Python programmer working for VMware Israel. He is one of first developers for the Twisted project and has used it ever since. His current job entails using Twisted and helping the other programmers in the VMware Israel team learn and use Twisted. Moshe lives in Herzliyah, Israel, near the sea.
Outline
- Introduction
- Knowing the Rules
- What you always wanted to know and were afraid to ask
- Returning deferreds
- Deferred chains
- Real-life example
- Deferred Generators
- Deferreds and Threads
- Summary
- Q&A
- Buffer: Deferred-oriented API
























.