formatting
This commit is contained in:
parent
12f0c5cb8f
commit
21805b0d8a
1 changed files with 4 additions and 1 deletions
|
@ -20,7 +20,10 @@ def run_in_executor(f):
|
|||
@functools.wraps(f)
|
||||
def inner(*args, **kwargs):
|
||||
loop = asyncio.get_running_loop()
|
||||
return loop.run_in_executor(None, functools.partial(f, *args, **kwargs))
|
||||
return loop.run_in_executor(
|
||||
None,
|
||||
functools.partial(f, *args, **kwargs),
|
||||
)
|
||||
|
||||
return inner
|
||||
|
||||
|
|
Loading…
Reference in a new issue