(make-thread (lambda () (write-line "Hello, world")))
Class precedence list:
thread, structure-object, tThread type. Do not rely on threads being structs as it may change in future versions.
Create a new thread of
namethat runsfunction. When the function returns the thread exits.
Class precedence list:
interrupt-thread-error, error, serious-condition, condition, tInterrupting thread failed.
Interrupt the live
threadand make it runfunction. A moderate degree of care is expected for use ofinterrupt-thread, due to its nature: if you interrupt a thread that was holding important locks then do something that turns out to need those locks, you probably won't like the effect.