Skip to content

Commit ea6bf15

Browse files
authored
Update awaitme_beyza_saridas.py
1 parent 81967fe commit ea6bf15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Week05/awaitme_beyza_saridas.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import asyncio
22

3-
def coroutine_decorator(func):
3+
def awaitme(func):
44
async def _wrapper(*args, **kwargs):
55
result = func(*args, **kwargs)
66

77
if asyncio.iscoroutine(result):
88
return await result
99

1010
return result
11+
return _wrapper

0 commit comments

Comments
 (0)