def _call(self, id, *args):
    callbacks = self.__callbacks
    futures = self.__futures
    if (asyncio and self.is_async and futures.get(id)):
        futures[id].set_result((args[0] if (len(args) == 1) else args))
        del futures[id]
        return
    if (id not in callbacks):
        Logs.warning('Received an unknown callback id:', id)
        return
    callbacks[id](*args)
    del callbacks[id]
def _call(self, id, *args):
    callbacks = self.__callbacks
    futures = self.__futures
    if (asyncio and self.is_async and futures.get(id)):
        futures[id].set_result((args[0] if (len(args) == 1) else args))
        del futures[id]
        return
    if (id not in callbacks):
        Logs.warning('Received an unknown callback id:', id)
        return
    callbacks[id](*args)
    del callbacks[id]