 
      
      process()Run .fio file in a separate process (child process)
process(file, args = [], on_updated = nothing, on_returned = nothing, on_finished = nothing)
file (string)  — A .fio file to run (without .fio extension)args (array, optional)  — Arguments to be passed to child process. Note: since the arguments will be packed as a JSON format, you cannot pass a "complex" object that refers to a memory address. For example: [gui_window(), gui_button()] will be passed as [nothing, nothing]. The default value is []on_updated (ref|function_call, optional)  — A callback function to catch yielded data from the child process. The default value is nothingon_returned (ref|function_call, optional)  — A callback function to catch returned data from the child process. The default value is nothingon_finished (ref|function_call, optional)  — This function is called when the child process is finished running. The default value is nothing
boolean — Always returns true
import multiprocess
 
process("child", [10, "Hello"], nothing, nothing, process_finished())
 
function process_finished()
    writeln("A child process finished.")
stop