Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def on_source_done(self, source):
loop.call_later(self._delay, self.set_done)
def on_source(self, *args):
loop.call_later(self._delay, self.emit, *args)
def on_source_error(self, error):
loop.call_later(self._delay, self.error_event.emit, error)