import Std::Io::{PrintLine, PrintInt};
import Std::Task::TaskHandle;
import Std::Task::Task_Wait;
import Std::Channel::Channel;

func Worker(arg: *void) -> *void {
    PrintLine("Hello from thread!");
    return null;
}

func Main() -> int {
    let handle: *void = spawn Worker();
    Task_Wait(TaskHandle { handle: handle });
    PrintLine("Thread finished");
    return 0;
}
