Skip to content
Snippets Groups Projects
Commit f4e7930f authored by Jono Wenger's avatar Jono Wenger
Browse files

Add build directive

parent 301d7cc7
No related branches found
No related tags found
2 merge requests!67fix for latest client release,!52XX-4382 / Move indexedDb databases to web workers
......@@ -275,6 +275,14 @@ func (wh *WorkerHandler) postMessage(msg any) {
wh.worker.Call("postMessage", msg)
}
// Terminate immediately terminates the Worker. This does not offer the worker
// an opportunity to finish its operations; it is stopped at once.
//
// Doc: https://developer.mozilla.org/en-US/docs/Web/API/Worker/terminate
func (wh *WorkerHandler) Terminate() {
wh.worker.Call("terminate")
}
// newWorkerOptions creates a new Javascript object containing optional
// properties that can be set when creating a new worker.
//
......
......@@ -5,6 +5,8 @@
// LICENSE file. //
////////////////////////////////////////////////////////////////////////////////
//go:build js && wasm
package indexedDbWorker
import (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment