by zenbot · 14y ago · 0 comments
try:
data = doManyFancyThingsWith(yield asyncResult())
print 'Parsed data:', data
except:
print 'Oh no, something went wrong!'
I find that I use inline callbacks for the common case and work with deferreds directly only when it makes more sense to handle callbacks explicitly.No comments yet.