async_wrap_v1
async_wrap_v1(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_v1.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|