async_wrap
async_wrap(func)
¶
Wrap a synchronous callable in an async task
Ref: issue #140 and this StackOverflow answer.
Returns:
Name | Type | Description |
---|---|---|
async_wrapper |
Callable
|
A factory that allows wrapping a blocking callable within a coroutine. |
Source code in fractal_server/app/runner/async_wrap.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|