Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Sets a callback to be called after this stream closes.

src/p/y/pyrox-0.4.5/pyrox/server/proxyng.py   pyrox(Download)
                self.destroy()
                self._on_target_closed()
        live_stream.on_close(on_close)
 
        # Build and set the on_error callback
        def on_error(error):
            # Dsiable close cb on error
            live_stream.on_close(None)

src/p/y/pyrox-HEAD/pyrox/server/proxyng.py   pyrox(Download)
                self.destroy()
                self._on_target_closed()
        live_stream.on_close(on_close)
 
        # Build and set the on_error callback
        def on_error(error):
            # Dsiable close cb on error
            live_stream.on_close(None)