Skip to content

Commit aee003a

Browse files
authored
Merge pull request #1235 from GunduzogluTurhan/patch-13
Add awaitme decorator for asynchronous functions
2 parents 6001fe4 + a84d430 commit aee003a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def awaitme(func):
2+
async def init(*args,**kwargs):
3+
res = func(*args,**kwargs)
4+
return res
5+
return init

0 commit comments

Comments
 (0)