()
| 191 | } |
| 192 | |
| 193 | async detach(): Promise<void> { |
| 194 | this._serialize = this._serialize.then(async () => { |
| 195 | if (!this._attached) return undefined; |
| 196 | this._doDetach(); |
| 197 | }); |
| 198 | } |
| 199 | |
| 200 | async _doDetach() { |
| 201 | await this._cdp.Target.detachFromTarget({ targetId: this._targetId }); |