Skip to content

Commit

Permalink
refactor(rstream): update delete op (TS4.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Aug 28, 2020
1 parent 591c924 commit cef8674
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/rstream/src/subs/sidechain-partition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class SidechainPartition<T, S> extends ASidechain<T, S, T[]> {
$this.dispatch($this.buf);
}
$this.done();
delete $this.buf;
delete (<any>$this).buf;
},
});
}
Expand Down
2 changes: 1 addition & 1 deletion packages/rstream/src/subs/tunnel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class Tunnel<A, B> extends Subscription<A, B> {
setTimeout(() => {
LOGGER.info("terminating workers...");
this.workers.forEach((worker) => worker && worker.terminate());
delete this.workers;
delete (<any>this).workers;
}, this.terminate);
}
}
Expand Down

0 comments on commit cef8674

Please sign in to comment.