Arbortext Command Language > Functions by Alphabetical Listing > event_stop_process
  
event_stop_process
event_stop_process (code)
This function terminates the nested event loop entered by the last event_process call. When the event that resulted in the event_stop_process call is finished, ACL execution resumes after the event_process call.
The code parameter becomes the return value from event_process.
Example:
function timerCallback()
{
event_stop_process(1);
return 0; # cancel timer
}
timer_add_callback(500, "timerCallback");
window_set(0, "message", "waiting...");
# wait 5 seconds, blocking all input
$result = event_process(1);
window_set(0, "message", "event_process returned $result");
Related topic
event_process function