routine

package
v0.0.0-...-399f02e Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(maxGoRoutineCount int) error

func Start

func Start(ctx context.Context, f TaskFunc) error

Types

type Routine

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

func (*Routine) AddTask

func (r *Routine) AddTask(t *Task) error

func (*Routine) Schedule

func (r *Routine) Schedule()

type Task

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

func (*Task) GetTaskId

func (t *Task) GetTaskId() string

type TaskFunc

type TaskFunc func(t *Task) error

Jump to

Keyboard shortcuts

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