We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b6df8a3 + 9a9a2dc commit 016e01bCopy full SHA for 016e01b
Week05/awaitme_hamza_kiziltoprak.py
@@ -0,0 +1,9 @@
1
+import asyncio
2
+
3
+def awaitme(func):
4
+ async def _wrapper(*args,**kwargs):
5
+ result = func(*args,**kwargs)
6
+ if asyncio.iscoroutine(result):
7
+ return await result
8
+ return result
9
+ return _wrapper
0 commit comments