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