processAsync ?-tag str? ?-priority (1-4)? task ?notification?
This is an experimental command to process some pieces of code asynchronously on a separate thread. The task argument is a Tcl proc to execute asynchronously: the command schedules the task and returns immediately. The notification argument is optional: it specifies the name of another proc to invoke when the task completes successfully.
In case a notification proc is specified, one may also specify a -tag option in order to identify the task: its value can be any token and will be passed as an argument in the notification proc.
The -priority option indicates the priority of the scheduled task. Its value is an integer between 1 and 4 (the default is 3) with the following meaning:
1background priority
2low priority
3default priority
4high priority
Caveats: