Coverage for src / lilbee / cancellation.py: 100%

2 statements  

« prev     ^ index     » next       coverage.py v7.13.4, created at 2026-04-29 19:16 +0000

1"""Task cancellation sentinel shared between core library and TUI. 

2 

3Raised by progress callbacks when the UI signals a long-running 

4background task should abort. Lives in a neutral module so that 

5``catalog.py`` (core) can let it propagate without importing TUI code. 

6""" 

7 

8from __future__ import annotations 

9 

10 

11class TaskCancelled(Exception): 

12 """Raised inside a progress callback to abort a long-running task."""