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 9e3b775 + 0b7502d commit 7351a66Copy full SHA for 7351a66
Week05/awaitme_aysegul_ezber.py
@@ -0,0 +1,10 @@
1
+import asyncio
2
+
3
4
+def awaitme(func):
5
+ async def wrapper(*args,**kwargs):
6
+ rslt = func(*args,**kwargs)
7
+ if asyncio.iscoroutine(rslt):
8
+ return await rslt
9
+ return rslt
10
+ return wrapper
0 commit comments