gotask

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

README

gotask

task for go

Documentation

Index

Constants

View Source
const Version = "v0.0.1"

Variables

View Source
var Debug = true

Functions

This section is empty.

Types

type Task

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

func NewTask

func NewTask(max int, maxDur time.Duration) *Task

func (*Task) Do

func (t *Task) Do(f TaskFn, args ...interface{}) error

func (*Task) Wait

func (t *Task) Wait()

type TaskFn

type TaskFn func(args ...interface{}) *_taskFn

func TaskOf

func TaskOf(fn interface{}, efn ...func(err error)) TaskFn

Jump to

Keyboard shortcuts

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