a4c1ba9e4e
And provide a close() that can live at the end of a Deferred chain, so callers can do d.addBoth(w.close). I like auto-close-on-error in general, but I'm removing it so I can clean up the error-handling pathways. It will probably come back later. The constraint is that it must be possible to wait on the return Deferred that close() gives you (to synchronize tests, or keep the CLI program running long enough to deallocate the channel) even if something else (and error handler) called close() earlier. This will require either a OneShotObserverList, or keeping a "deallocated" Deferred around in case more callers want to wait on it later. |
||
---|---|---|
.. | ||
wormhole |