actors

package
v0.0.0-...-9ae062e Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Kill

func Kill(pid int64) bool

func Living

func Living(pid int64) bool

func Post

func Post(pid int64, act func()) bool

func PostAll

func PostAll(pids []int64, act func()) bool

func PostAny

func PostAny(pids []int64, act func()) bool

func TaskLen

func TaskLen(pid int64) int

Types

type Executor

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

func Get

func Get(pid int64) (*Executor, bool)

func Spawn

func Spawn(capacity int) *Executor

func (*Executor) Binder

func (e *Executor) Binder() interface{}

func (*Executor) Dispose

func (e *Executor) Dispose()

func (*Executor) Execute

func (e *Executor) Execute(act func()) bool

func (*Executor) Living

func (e *Executor) Living() bool

func (*Executor) Pid

func (e *Executor) Pid() int64

func (*Executor) SetBinder

func (e *Executor) SetBinder(obj interface{})

func (*Executor) TaskLen

func (e *Executor) TaskLen() int

Jump to

Keyboard shortcuts

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