method Task.prototype.run Task.prototype.run(): Promise<T> Executes the task and resolves the value or throws the error. Return Type Promise<T>