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() 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.
Click to show internal directories.
Click to hide internal directories.