g

package
v0.0.0-...-2824937 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Go

type Go struct {
	ChanCb chan func() // 用于传送call back函数
	// contains filtered or unexported fields
}

one Go per goroutine (goroutine not safe)

func New

func New(l int) *Go

func (*Go) Cb

func (g *Go) Cb(cb func())

func (*Go) Close

func (g *Go) Close()

func (*Go) Go

func (g *Go) Go(f func(), cb func())

func (*Go) Idle

func (g *Go) Idle() bool

func (*Go) NewLinearContext

func (g *Go) NewLinearContext() *LinearContext

type LinearContext

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

func (*LinearContext) Go

func (c *LinearContext) Go(f func(), cb func())

type LinearGo

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

Jump to

Keyboard shortcuts

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