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

Method on

playwright/sync_api/_generated.py:6915–6920  ·  view source on GitHub ↗

Emitted when this dedicated [WebWorker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) is terminated.

(
        self, event: Literal["close"], f: typing.Callable[["Worker"], "None"]
    )

Source from the content-addressed store, hash-verified

6913
6914 @typing.overload
6915 def on(
6916 self, event: Literal["close"], f: typing.Callable[["Worker"], "None"]
6917 ) -> None:
6918 """
6919 Emitted when this dedicated [WebWorker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) is
6920 terminated."""
6921
6922 @typing.overload
6923 def on(

Callers

nothing calls this directly

Calls 1

onMethod · 0.45

Tested by

no test coverage detected