method Task.prototype.timeout Task.prototype.timeout(ms: number,error?: E,): Task<T, E> Fails if the task does not complete within the specified time. Parameters ms: number optional error: E Return Type Task<T, E>