Task
Yields the current thread until the given duration (in seconds) has elapsed, then resumes the thread on the next Heartbeat step.
wait([duration: number]) returns number