提交 8db14cea 编写于 作者: J Joao Moreno

use always for cancelablepromise.finally

上级 cee47d0f
......@@ -45,7 +45,7 @@ export function createCancelablePromise<T>(callback: (token: CancellationToken)
return this.then(undefined, reject);
}
finally(onfinally?: (() => void) | undefined | null): Promise<T> {
return promise.finally(onfinally);
return always(promise, onfinally);
}
};
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册