View on GitHub

Concert

Concert is an imperative, concurrent, strongly typed scripting language

Download this project as a .zip file Download this project as a tar.gz file

Home Keywords

Keyword join

Description

Blocks the current thread until the thread created by join finishes its execution. Requires a declared function as a parameter.

Example

function simpleLoopFunction;
    int start = 0;
    int end = 100;
  
    while start < end;
      start += 1;
    end;
return;

function detachLoopFunctions;
    detach "simpleLoopFunction";
    detach "simpleLoopFunction";
return;

# Wait for the threads detached in "detachLoopFunctions" to finish their execution.
join "detachLoopFunctions";