dispatcher

package
v0.0.0-...-7ef8827 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2016 License: AGPL-3.0, AGPL-3.0-only Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher struct {
	ExecutorCount uint8
	Executors     []*Executor
}

func (*Dispatcher) Init

func (dis *Dispatcher) Init(count uint8)

func (*Dispatcher) Shutdown

func (dis *Dispatcher) Shutdown()

type Executor

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

func (*Executor) Enqueue

func (exe *Executor) Enqueue(fun func()) bool

func (*Executor) WithTerminatedChan

func (exe *Executor) WithTerminatedChan(fun func(chan struct{}))

Jump to

Keyboard shortcuts

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