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 7e6f963 + 7da307b commit cd26d46Copy full SHA for cd26d46
Week05/awaitme_kerem_kurtuldu.py
@@ -0,0 +1,9 @@
1
+import asyncio
2
+
3
+def awaitme(function):
4
+ async def wrapper(*args, **kwargs):
5
+ result = function(*args, **kwargs)
6
+ if asyncio.iscoroutine(result):
7
+ return await result
8
+ return result
9
+ return wrapper
0 commit comments