fix(core): update

This commit is contained in:
2023-11-13 17:52:11 +01:00
parent 116a281c6c
commit 00d1455367
7 changed files with 75 additions and 68 deletions

View File

@@ -51,8 +51,9 @@ export class SmartDuplex<TInput = any, TOutput = any> extends Duplex {
}
public async _read(size: number): Promise<void> {
await this.backpressuredArray.waitForItems();
this.debugLog(`${this.options.name}: read was called`);
await this.backpressuredArray.waitForItems();
this.debugLog(`${this.options.name}: successfully waited for items.`);
if (this.options.readFunction) {
await this.options.readFunction();
}