let t = thread(f()=time.snooze(1)) term.log("start") t.start() term.log('started') let val = t.join() term.log('joined', val)