[Twisted-Python] serializing inline callbacks
Axel Rau
Axel.Rau at Chaos1.DE
Tue Feb 18 09:40:53 MST 2014
Am 18.02.2014 um 16:34 schrieb Dustin J. Mitchell <dustin at v.igoro.us>:
> True, I only mean that
>
> def A(self):
> ...
> tmp = yield subprocess(args)
> ...
> self.B()
>
> leaves the deferred from B totally unhandled, which is nearly always a
> bad thing.
Is this true, if I have a yield in B like in my case:
—-
@inlineCallbacks
def B(self):
...
tmp = yield subprocess(args)
...
self.C()
—-
? I thought the yield is handling the deferred.
Axel
---
PGP-Key:29E99DD6 ☀ +49 151 2300 9283 ☀ computing @ chaos claudius
More information about the Twisted-Python
mailing list