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.
2 parents c9783ae + 1cd49fb commit 1465a68Copy full SHA for 1465a68
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