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)
        def on_close():
            # Disable error cb on close
            live_stream.on_error(None)
 
            del self._streams[target]
                    self.destroy()
                    self._on_target_error(error)
        live_stream.on_error(on_error)
 
        # Build and set the on_connect callback and then connect

src/p/y/pyrox-HEAD/pyrox/server/proxyng.py   pyrox(Download)
        def on_close():
            # Disable error cb on close
            live_stream.on_error(None)
 
            del self._streams[target]
                    self.destroy()
                    self._on_target_error(error)
        live_stream.on_error(on_error)
 
        # Build and set the on_connect callback and then connect