mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
@@ -24,11 +24,7 @@ export interface CallbackTask extends BaseTask {
|
||||
export type Task = PromiseTask | StreamTask | CallbackTask;
|
||||
|
||||
function _isPromise(p: Promise<void> | NodeJS.ReadWriteStream): p is Promise<void> {
|
||||
// eslint-disable-next-line local/code-no-any-casts
|
||||
if (typeof (<any>p).then === 'function') {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return typeof (p as Promise<void>).then === 'function';
|
||||
}
|
||||
|
||||
function _renderTime(time: number): string {
|
||||
|
||||
Reference in New Issue
Block a user