groutine

package
v0.0.0-...-f3abbe6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Routine

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

func RunLoop

func RunLoop(function RoutineFunc, loopInterval time.Duration, timeout *time.Duration, args ...interface{}) *Routine

Create new routine.

func RunOnce

func RunOnce(function RoutineFunc, args ...interface{}) *Routine

func (*Routine) Close

func (r *Routine) Close()

func (*Routine) IsAlive

func (r *Routine) IsAlive() bool

Is alive or not.

func (*Routine) Wait

func (r *Routine) Wait()

Wait until go routine end.

type RoutineFunc

type RoutineFunc func(args ...interface{})

Jump to

Keyboard shortcuts

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