diff --git a/Week05/awaitme_ece_akinci.py b/Week05/awaitme_ece_akinci.py new file mode 100644 index 00000000..8d2c3a39 --- /dev/null +++ b/Week05/awaitme_ece_akinci.py @@ -0,0 +1,9 @@ +import asyncio + +def awaitme(func): + async def _wrapper(*args,**kwargs): + result = func(*args,**kwargs) + if asyncio.iscoroutine(result): + return await result + return result + return _wrapper