web_worker

package
v0.52.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyWebWorkerID = errors.New("empty web worker id")

ErrEmptyWebWorkerID is returned if the web worker id was empty.

Functions

This section is empty.

Types

type WebWorker

type WebWorker interface {
	// GetId returns the web worker id.
	GetId() string
	// GetDocumentId returns the id of the parent WebDocument.
	// May be empty.
	GetDocumentId() string
	// GetShared indicates this is a shared worker.
	GetShared() bool

	// Remove shuts down the WebWorker and unregisters it from the host.
	// Returns context.Canceled if ctx is canceled
	// Returns if the worker was confirmed removed.
	// Returns false, nil if the worker was not found.
	Remove(ctx context.Context) (bool, error)
}

WebWorker is the reference to a web worker.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL