set timeout and threads in Mojo