MCPcopy Create free account
hub / github.com/chieapp/chie / pushTask

Method pushTask

src/view/browser-view.ts:94–98  ·  view source on GitHub ↗
(callback: (cb?) => void | Promise<void>)

Source from the content-addressed store, hash-verified

92 // If the browser loads another page before current page is ready, the tasks
93 // will be cancelled.
94 pushTask(callback: (cb?) => void | Promise<void>) {
95 this.#queue.push(callback);
96 if (this.isDomReady)
97 this.#queue.start();
98 }
99
100 // Wrapper of pushTask and executeJavaScript.
101 pushJavaScript(js: string) {

Callers 4

pushJavaScriptMethod · 0.95
appendMessageMethod · 0.80
appendPendingMessageMethod · 0.80
updateMessageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected