(rontolisp:destroy-thread thread)
Interrupts the thread behind the handle and returns the handle. A thread blocked in a
waiting operation unblocks with an error there; like Java's Thread.interrupt, a body
that never blocks may run to completion anyway — this is a request, not a kill.
(let ((th (rontolisp:make-thread (lambda () 1))))
(rontolisp:join-thread th)
(rontolisp:threadp (rontolisp:destroy-thread th))) ; => T- Delivery is asynchronous:
thread-alive-pmay still answertfor a moment after this returns. - A value that is not a thread handle signals a
type-errorexpecting(SATISFIES RONTOLISP:THREADP). - Interpreter and JVM backend only, like
rontolisp:make-threaditself.