Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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