removing cancelable async iterable object

This commit is contained in:
Aiday Marlen Kyzy 2025-08-01 14:16:42 +03:00
parent 4fce043554
commit f3c91c1229
No known key found for this signature in database
GPG Key ID: D55A35EAC79FDA9A
1 changed files with 0 additions and 12 deletions

View File

@ -2168,18 +2168,6 @@ export class AsyncIterableObject<T> implements AsyncIterable<T> {
}
}
export class CancelableAsyncIterableObject<T> extends AsyncIterableObject<T> {
constructor(
private readonly _source: CancellationTokenSource,
executor: AsyncIterableExecutor<T>
) {
super(executor);
}
cancel(): void {
this._source.cancel();
}
}
export function createCancelableAsyncIterableProducer<T>(callback: (token: CancellationToken) => AsyncIterable<T>): CancelableAsyncIterableProducer<T> {
const source = new CancellationTokenSource();