Create a Task which will resolve to Unit after a set interval. (Safely wraps setTimeout.)
Task
Unit
setTimeout
This can be combined with the Task.timeout instance method.
Task.timeout
The number of milliseconds to wait before resolving the Task.
a Task which resolves to the passed-in number of milliseconds.
Create a
Task
which will resolve toUnit
after a set interval. (Safely wrapssetTimeout
.)This can be combined with the
Task.timeout
instance method.