process

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScheduleProcess

func ScheduleProcess(process *Process, ms int64)

ScheduleProcess manage the schedule of Process instance, defying a interval time in milliseconds

Types

type Process

type Process struct {
	Function func()
	Channel  chan string
}

func NewProcess

func NewProcess(function func(), channel chan string) *Process

NewProcess create and returns a Process instance, defying a "main" function and a main channel to communicate

Jump to

Keyboard shortcuts

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