Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xxdk-wasm
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
xxdk-wasm
Commits
f4e7930f
Commit
f4e7930f
authored
2 years ago
by
Jono Wenger
Browse files
Options
Downloads
Patches
Plain Diff
Add build directive
parent
301d7cc7
No related branches found
No related tags found
2 merge requests
!67
fix for latest client release
,
!52
XX-4382 / Move indexedDb databases to web workers
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indexedDbWorker/worker.go
+8
-0
8 additions, 0 deletions
indexedDbWorker/worker.go
indexedDbWorker/worker_test.go
+2
-0
2 additions, 0 deletions
indexedDbWorker/worker_test.go
with
10 additions
and
0 deletions
indexedDbWorker/worker.go
+
8
−
0
View file @
f4e7930f
...
...
@@ -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.
//
...
...
This diff is collapsed.
Click to expand it.
indexedDbWorker/worker_test.go
+
2
−
0
View file @
f4e7930f
...
...
@@ -5,6 +5,8 @@
// LICENSE file. //
////////////////////////////////////////////////////////////////////////////////
//go:build js && wasm
package
indexedDbWorker
import
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment