thread = { sleep = fn (milliseconds: int) { __SLEEP__ milliseconds } }