Funcall a function asynchronously.
mp
funcall-async func &rest args
funcall-async-list func-and-args
| func⇩ |
A function designator. |
| args⇩ |
Arguments. |
| func-and-args⇩ |
A cons (func . args). |
The functions funcall-async and funcall-async-list apply the function func with arguments args, 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.
"Background Execute n".funcall-async and/or funcall-async-list often, you may want to increase the limit, by using set-funcall-async-limit.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 - 18 Feb 2025 15:32:36