|
3 | 3 | * Licensed under the MIT License. See License.txt in the project root for license information.
|
4 | 4 | *--------------------------------------------------------------------------------------------*/
|
5 | 5 |
|
6 |
| -import { AsyncIterableProducer, CancelableAsyncIterableObject, createCancelableAsyncIterable, RunOnceScheduler } from '../../../../base/common/async.js'; |
| 6 | +import { AsyncIterableProducer, CancelableAsyncIterableProducer, createCancelableAsyncIterableProducer, RunOnceScheduler } from '../../../../base/common/async.js'; |
7 | 7 | import { CancellationToken } from '../../../../base/common/cancellation.js';
|
8 | 8 | import { onUnexpectedError } from '../../../../base/common/errors.js';
|
9 | 9 | import { Emitter } from '../../../../base/common/event.js';
|
@@ -70,7 +70,7 @@ export class HoverOperation<TArgs, TResult> extends Disposable {
|
70 | 70 | private readonly _loadingMessageScheduler = this._register(new Debouncer((options: TArgs) => this._triggerLoadingMessage(options), 0));
|
71 | 71 |
|
72 | 72 | private _state = HoverOperationState.Idle;
|
73 |
| - private _asyncIterable: CancelableAsyncIterableObject<TResult> | null = null; |
| 73 | + private _asyncIterable: CancelableAsyncIterableProducer<TResult> | null = null; |
74 | 74 | private _asyncIterableDone: boolean = false;
|
75 | 75 | private _result: TResult[] = [];
|
76 | 76 | private _options: TArgs | undefined;
|
@@ -119,7 +119,7 @@ export class HoverOperation<TArgs, TResult> extends Disposable {
|
119 | 119 |
|
120 | 120 | if (this._computer.computeAsync) {
|
121 | 121 | this._asyncIterableDone = false;
|
122 |
| - this._asyncIterable = createCancelableAsyncIterable(token => this._computer.computeAsync!(options, token)); |
| 122 | + this._asyncIterable = createCancelableAsyncIterableProducer(token => this._computer.computeAsync!(options, token)); |
123 | 123 |
|
124 | 124 | (async () => {
|
125 | 125 | try {
|
|
0 commit comments