(request: Request)
| 49 | return loop.run_until_complete(handler(request, sdk)) |
| 50 | |
| 51 | async def make_handler(request: Request): |
| 52 | if use_thread_pool: |
| 53 | executor = ThreadPoolExecutor(max_workers=max_workers) |
| 54 | loop = asyncio.get_event_loop() |
| 55 | future = loop.run_in_executor(executor, run_handler_in_thread, request, sdk) |
| 56 | return await future |
| 57 | return await handler(request, sdk) |
| 58 | |
| 59 | # Ensure the prefix starts with a slash and remove trailing slashes |
| 60 | normalized_prefix = "/" + prefix.strip("/") |
nothing calls this directly
no test coverage detected
searching dependent graphs…