task

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

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

Note: 1. NOT thread-safe 2. The order of task execution is guaranteed to be the same as the add order.

func (*Queue) Add

func (q *Queue) Add(t Task)

func (*Queue) Clear

func (q *Queue) Clear()

func (*Queue) ExecAll

func (q *Queue) ExecAll()

func (*Queue) Size

func (q *Queue) Size() int

type Task

type Task func()

Jump to

Keyboard shortcuts

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