()
| 114 | return DeferredPrefetchHandle(mode="loop", tasks=[task]) |
| 115 | |
| 116 | def _run_in_thread() -> None: |
| 117 | try: |
| 118 | asyncio.run(_warm(cwd, include_system_context)) |
| 119 | except Exception as exc: |
| 120 | logger.debug("deferred prefetch thread failed: %r", exc) |
| 121 | |
| 122 | thread = threading.Thread( |
| 123 | target=_run_in_thread, |