background

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2016 License: ISC Imports: 0 Imported by: 3

Documentation

Overview

Simple skeleton for background processes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Stop

func Stop(t *T)

stop a set of background processes

Types

type Process

type Process func(args interface{}, shutdown <-chan bool, done chan<- bool)

type signature for background process

type Processes

type Processes []Process

list of processes to start

type T

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

handle type

func Start

func Start(processes Processes, args interface{}) *T

start up a set of background processes

Jump to

Keyboard shortcuts

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