async

Executes function in new thread

  1. AsyncThread async(void function() fn)
    async
    (
    void function
    ()
    fn
    )
  2. AsyncThread async(void delegate() fn)

Examples

async({
    writeln("I'm in a thread");
});

async({
    writeln("I'm in a joined thread");
}).await();

Meta