@classmethod
def _save_callback(cls, id, callback):
    if (callback is None):
        if (asyncio and nanome.PluginInstance._instance.is_async):
            loop = asyncio.get_event_loop()
            future = loop.create_future()
            cls.__futures[id] = future
            return future
        else:
            cls.__callbacks[id] = (lambda *_: None)
    else:
        cls.__callbacks[id] = callback
@classmethod
def _save_callback(cls, id, callback):
    if (callback is None):
        if (asyncio and nanome.PluginInstance._instance.is_async):
            loop = asyncio.get_event_loop()
            future = loop.create_future()
            cls.__futures[id] = future
            return future
        else:
            cls.__callbacks[id] = (lambda *_: None)
    else:
        cls.__callbacks[id] = callback