https://github.com/compufox/with-user-abort
provides a nice, portable way to capture user-interrupt signals in lisp
https://github.com/compufox/with-user-abort
Last synced: 4 months ago
JSON representation
provides a nice, portable way to capture user-interrupt signals in lisp
- Host: GitHub
- URL: https://github.com/compufox/with-user-abort
- Owner: compufox
- Created: 2019-10-30T16:33:53.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-04-26T22:19:51.000Z (about 1 year ago)
- Last Synced: 2025-03-02T04:44:02.632Z (4 months ago)
- Language: Common Lisp
- Size: 1.95 KB
- Stars: 22
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# with-user-abort
### _ava fox_provides a portable way to capture control-c in your lisp programs
## Exports
*Macro* `with-user-abort` &body body
executes BODY and captures a user-interrupt (control-c) and signals user-abort condition
*Condition* `user-abort`
a simple condition that inherits from your implementation's user-interrupt.
## Example
```lisp
(handler-case
(with-user-abort (long-running-call))
(user-abort ()
(print "Quitting gracefully")
(uiop:quit 1)))
```---
## License
BSD 3-Clause