# set_system_doevents

Definition: | set_system_doevents(integer rid, object params)
Description: | Declare a routine to be periodically invoked while a system_exec() is in progress.
pwa/p2js: | Not supported.
Comments: | When used correctly this can prevent an application from becoming non-responsive while waiting for some other application to finish. Note this routine has no known equivalent in Euphoria.
Example: |
    include arwen.ew -- (for doEvents(0))
        set_system_doevents(routine_id("doEvents"),{0})
    ...
        exit_code = system_exec(cmd)
Implementation: | See builtins\syswait.ew (an autoinclude) for details of the actual implementation.
See Also: | system_exec