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 b73e7df commit ac7ec99Copy full SHA for ac7ec99
Week05/awaitme_ufuk_dilek.py
@@ -0,0 +1,9 @@
1
+import asyncio
2
+
3
4
+def awaitme(func):
5
+ async def wrapper(*args, **kwargs):
6
+ if asyncio.iscoroutinefunction(func):
7
+ return await func(*args, **kwargs)
8
+ return func(*args, **kwargs)
9
+ return wrapper
0 commit comments