Funcall a function asynchronously.
funcall-async func &rest args
A function designator.
funcall-async-list call the function func with the supplied arguments, that is what
cl:funcall would do, but asynchronously.
func-and-args must be a cons of a function designator and a proper list of arguments.
Multiprocessing must have already started.
These functions do not return a useful value.
These functions are effectively lightweight versions of process-run-function.
On most architectures they are implemented using worker processes, which are named
"Background Execute n
The maximum number background processes is limited by default to 5 and this is adequate in most cases. However, if you use
funcall-async-list often, you may want to increase the limit, by using set-funcall-async-limit.
The dynamic context of the call to func is undefined, and must not be relied upon.
The current process should not be accessed inside func, except when you want another process to poke the process that runs func (this is sometimes useful if func calls a wait function). In this case you can call get-current-process inside the dynamic scope of func to get the process that the other process should poke.
funcall-async and funcall-async-list are intended for functions that finish quickly. If func takes a long time, it prevents the background process from executing other async calls, and if all of the background processes become occupied by long-executing functions it will cause other async calls to be delayed until one of the background processes finishes. Thus if you have a long-executing function that you want to run asynchronously, it is better to use process-run-function instead, or use your own pool of worker processes.
LispWorks User Guide and Reference Manual - 20 Sep 2017