Created
June 18, 2020 08:51
-
-
Save GarryBrown/12cfff683ab93b3201d376c40edc3acb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
next(value?: T): void { | |
if (!this.isStopped) { | |
this._next(value!); | |
} | |
} | |
error(err?: any): void { | |
if (!this.isStopped) { | |
this.isStopped = true; | |
this._error(err); | |
} | |
} | |
complete(): void { | |
if (!this.isStopped) { | |
this.isStopped = true; | |
this._complete(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment