Skip to content

compufox/with-user-abort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

(handler-case
	(with-user-abort (long-running-call))
  (user-abort ()
	(print "Quitting gracefully")
	(uiop:quit 1)))

License

BSD 3-Clause

About

provides a nice, portable way to capture user-interrupt signals in lisp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published