thread

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Portal

type Portal struct {
	lang.Base
	// contains filtered or unexported fields
}

func NewPortal

func NewPortal(id uint, portalBufferSize int) *Portal

func (*Portal) Copy

func (p *Portal) Copy() lang.Object

func (*Portal) Method

func (p *Portal) Method(name string) lang.Method

func (*Portal) Methods

func (p *Portal) Methods() []string

func (*Portal) SetVariable

func (p *Portal) SetVariable(_ string, _ lang.Object) error

func (*Portal) String

func (p *Portal) String() string

func (*Portal) Type

func (p *Portal) Type() lang.ObjType

func (*Portal) TypeString

func (p *Portal) TypeString() string

func (*Portal) Value

func (p *Portal) Value() any

func (*Portal) Variable

func (p *Portal) Variable(variable string) lang.Object

func (*Portal) Variables

func (p *Portal) Variables() []string

type Spawner

type Spawner struct {
	lang.Base
	// contains filtered or unexported fields
}

func NewSpawner

func NewSpawner(max int) *Spawner

func (*Spawner) Copy

func (s *Spawner) Copy() lang.Object

func (*Spawner) Method

func (s *Spawner) Method(name string) lang.Method

func (*Spawner) Methods

func (s *Spawner) Methods() []string

func (*Spawner) SetVariable

func (s *Spawner) SetVariable(_ string, _ lang.Object) error

func (*Spawner) String

func (s *Spawner) String() string

func (*Spawner) Type

func (s *Spawner) Type() lang.ObjType

func (*Spawner) TypeString

func (s *Spawner) TypeString() string

func (*Spawner) Value

func (s *Spawner) Value() any

func (*Spawner) Variable

func (s *Spawner) Variable(variable string) lang.Object

func (*Spawner) Variables

func (s *Spawner) Variables() []string

type Thread

type Thread struct {
	// contains filtered or unexported fields
}

func New

func New() *Thread

func (*Thread) Methods

func (t *Thread) Methods() map[string]lang.Method

func (*Thread) Namespace

func (*Thread) Namespace() string

func (*Thread) Objects

func (*Thread) Objects() map[string]lang.Object

Jump to

Keyboard shortcuts

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