Skip to content

Commit c11005d

Browse files
authored
Merge pull request #1185 from mantuhotep/patch-6
Add awaitme decorator for asynchronous functions
2 parents 94144f5 + 508c72d commit c11005d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Week05/awaitme_muhammet_topcu.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import functools
2+
3+
def awaitme(func):
4+
@functools.wraps(func)
5+
async def wrapper(*args, **kwargs):
6+
return func(*args, **kwargs)
7+
return wrapper

0 commit comments

Comments
 (0)