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 f9db1ae commit d1f7329Copy full SHA for d1f7329
Week05/awaitme_kadir_yildiz.py
@@ -0,0 +1,9 @@
1
+import asyncio
2
+
3
+def async_handler(func):
4
+ async def wrapper(*args, **kwargs):
5
+ outcome = func(*args, **kwargs)
6
+ if asyncio.iscoroutine(outcome):
7
+ return await outcome
8
+ return outcome
9
+ return wrapper
0 commit comments