We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21d3401 commit 1cd49fbCopy full SHA for 1cd49fb
Week05/awaitme_esra_kaya.py
@@ -0,0 +1,9 @@
1
+import asyncio
2
+
3
+def awaitme(function):
4
+ async def _awaitme(*args, **kwargs):
5
+ func = function(*args, **kwargs)
6
+ if asyncio.iscoroutine(func):
7
+ return await func
8
+ return func
9
+ return _awaitme
0 commit comments