MCPcopy Index your code
hub / github.com/microsoft/playwright-python / handle_closed

Method handle_closed

playwright/_impl/_json_pipe.py:56–60  ·  view source on GitHub ↗
(reason: Optional[str])

Source from the content-addressed store, hash-verified

54 self.on_message(cast(ParsedMessagePayload, message))
55
56 def handle_closed(reason: Optional[str]) -> None:
57 self.emit("close", reason)
58 if reason:
59 self.on_error_future.set_exception(TargetClosedError(reason))
60 self._stopped_future.set_result(None)
61
62 self._pipe_channel.on(
63 "message",

Callers

nothing calls this directly

Calls 1

TargetClosedErrorClass · 0.90

Tested by

no test coverage detected