fix: correct comments

This commit is contained in:
Joram 2019-11-06 15:45:15 +01:00
parent 5f271de8c2
commit 821c9ab494
1 changed files with 3 additions and 4 deletions

View File

@ -51,9 +51,8 @@ export class SubchannelPool {
constructor(private global: boolean) {}
/**
* Unrefs all unused subchannels.
*
* @returns `true` if all subchannels have been unrefed. `false` otherwise.
* Unrefs all unused subchannels and cancels the cleanup task if all
* subchannels have been unrefed.
*/
unrefUnusedSubchannels(): void {
let allSubchannelsUnrefed = true;
@ -93,7 +92,7 @@ export class SubchannelPool {
}
/**
* Ensure that the cleanup task is spawned.
* Ensures that the cleanup task is spawned.
*/
ensureCleanupTask(): void {
if (this.global && this.cleanupTimer === undefined) {