withTimeout

Set the timeout for the underlying task.