class LoopExecutor(concurrent.futures.Executor):
    """An Executor subclass that uses an event loop 
    to execute calls asynchronously."""

def __init__(self, loop=None):
    """Initialize the executor with a given loop."""
self.loop = loop or asyncio.get_event_loop()

def submit(self, fn, *args, **kwargs):
    """Schedule the callable, fn, to be executed as fn(*args **kwargs).
        Return a Future object representing the execution of the callable."""
Отправить задание в цикл событий asyncio