(ctx, t)
| 7 | return time.sleep(t) |
| 8 | |
| 9 | async def the_task(ctx, t): |
| 10 | blocking = functools.partial(sync_task, t) |
| 11 | loop = asyncio.get_running_loop() |
| 12 | return await loop.run_in_executor(ctx['pool'], blocking) |
| 13 | |
| 14 | async def startup(ctx): |
| 15 | ctx['pool'] = futures.ProcessPoolExecutor() |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…