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