From a7184405e6a032314f797cb616ffcaa8629eda7f Mon Sep 17 00:00:00 2001 From: sacOO7 Date: Tue, 3 Oct 2023 12:50:39 +0530 Subject: [PATCH] Added event loop helpers --- ably/executer/eventloop_helper.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ably/executer/eventloop_helper.py diff --git a/ably/executer/eventloop_helper.py b/ably/executer/eventloop_helper.py new file mode 100644 index 00000000..090c82ca --- /dev/null +++ b/ably/executer/eventloop_helper.py @@ -0,0 +1,20 @@ +from asyncio import events + + +def run(loop: events, coro): + print("run") + +def run_safe(loop: events, coro): + print("run safe") + +def run_sync(loop: events, coro): + print("run sync") + +def run_sync_safe(loop: events, coro): + print("run sync safe") + +def run_async(loop: events, coro): + print("run async") + +def run_async_safe(loop: events, coro): + print("run async safe")