You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/api/class-worker.md
+61Lines changed: 61 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,12 @@ foreach(var pageWorker in page.Workers)
58
58
59
59
Emitted when this dedicated [WebWorker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) is terminated.
60
60
61
+
## event: Worker.console
62
+
* since: v1.57
63
+
- argument: <[ConsoleMessage]>
64
+
65
+
Emitted when JavaScript within the Web Worker calls one of console API methods, e.g. `console.log` or `console.dir`. Console is not supported for Service Workers.
66
+
61
67
## async method: Worker.evaluate
62
68
* since: v1.8
63
69
- returns: <[Serializable]>
@@ -123,3 +129,58 @@ Performs action and waits for the Worker to close.
-`predicate` <[function]> Receives the event data and resolves to truthy value when the waiting should resolve.
178
+
-`timeout` ?<[float]> Maximum time to wait for in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout` option in the config, or by using the [`method: BrowserContext.setDefaultTimeout`] or [`method: Page.setDefaultTimeout`] methods.
179
+
180
+
Either a predicate that receives an event or an options object. Optional.
0 commit comments