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 6a0ee87 commit a70238cCopy full SHA for a70238c
Week05/awaitme_mert_durgun.py
@@ -0,0 +1,10 @@
1
+import asyncio
2
+
3
+def awaitme(func):
4
5
+ async def _wrapper(*args,**kwargs):
6
+ result = func(*args,**kwargs)
7
+ if asyncio.iscoroutine(result):
8
+ return await result
9
+ return result
10
+ return _wrapper
0 commit comments