worker

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package worker provides the typego:worker module for multi-threading.

Index

Constants

This section is empty.

Variables

View Source
var Types []byte

Functions

func Register

func Register(vm *sobek.Runtime, el *eventloop.EventLoop, spawner Spawner)

func RegisterSelf

func RegisterSelf(vm *sobek.Runtime, postToParent func(msg sobek.Value))

Types

type Handle

type Handle interface {
	PostMessage(msg sobek.Value)
	Terminate()
}

type Spawner

type Spawner func(scriptPath string, onMessage func(sobek.Value)) (Handle, error)

Jump to

Keyboard shortcuts

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