We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eb8c5f6 + 0dd0b3d commit e9a16ceCopy full SHA for e9a16ce
1 file changed
Week05/awaitme_buse_demirbas.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