Cancel all builds.
(self)
| 377 | return result |
| 378 | |
| 379 | def cancel_all(self) -> None: |
| 380 | """Cancel all builds.""" |
| 381 | # Provide immediate feedback that cancellation is starting |
| 382 | sys.stdout.write(" → Shutting down build executor...\n") |
| 383 | sys.stdout.flush() |
| 384 | self.executor.shutdown(wait=False, cancel_futures=True) |
| 385 | sys.stdout.write(" → Executor shutdown complete\n") |
| 386 | sys.stdout.flush() |
| 387 | |
| 388 | def build(self, examples: list[str]) -> list[Future[SketchResult]]: |
| 389 | """Build a list of examples with proper lock management. |
no test coverage detected