Claudiu
Claudiu

Reputation: 229461

What's the equivalent of Deferred for repeated events?

A Deferred is a pretty wonderful abstraction for a deferred task. I'd like to set something up that is equally elegant for repeated events, e.g. my protocol receives a message and I want different parts of my code to register their callbacks to be called when that message is received. A deferred is inappropriate, here. What is appropriate, in the twisted world?

Upvotes: 2

Views: 95

Answers (1)

Jean-Paul Calderone
Jean-Paul Calderone

Reputation: 48335

Tubes. They're not done yet, but you can read some in-development docs and some examples.

Upvotes: 5

Related Questions