Files
kanta/docs/fatal-errors.md
T
2026-09-02 17:34:20 +00:00

15 lines
290 B
Markdown

# Fatal Error Handlers
Fatal background write errors can be observed with a decorator:
```python
import os
import signal
@kanta.fatal_error
async def on_fatal(err):
os.kill(os.getpid(), signal.SIGTERM) # Die
```
Multiple fatal handlers are supported and run in registration order.