Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-04-26T22:19:51.000Z (9 months ago)
- Last Synced: 2024-10-11T22:12:32.812Z (3 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