(value)
| 8663 | } |
| 8664 | |
| 8665 | kill(value) { |
| 8666 | if (this._timeoutId !== undefined) { |
| 8667 | clearTimeout(this._timeoutId); |
| 8668 | delete this._timeoutId; |
| 8669 | } |
| 8670 | this._killPacket = {value, done: true}; |
| 8671 | this._destroy(); |
| 8672 | |
| 8673 | if (this._resolve) { |
| 8674 | this._resolve(); |
| 8675 | delete this._resolve; |
| 8676 | } |
| 8677 | } |
| 8678 | |
| 8679 | _destroy() { |
| 8680 | this.isAlive = false; |
no test coverage detected