 
      
      set_done_callback()Set callback when all processes are finished running
set_done_callback(f)
f (ref|function_call)  — This function is called when all processes are finished running
boolean — Always returns true
import multiprocess
 
set_done_callback(all_done())
 
function all_done()
    writeln("All processes are done.")
stop