task

package
v0.2.38 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTask

func RegisterTask(name string, taskNums int, call DoFunc)

RegisterTask

func RegisterTaskByMethod added in v0.0.63

func RegisterTaskByMethod(name string, taskNums int, call func(*context.Context))

RegisterTaskByMethod

func RegisterTaskByMethodAndFilter added in v0.0.73

func RegisterTaskByMethodAndFilter(name string, taskNums int, call func(*context.Context), filter func(*context.Context) bool)

RegisterTaskByMethodAndFilter

func Start

func Start()

Start start task

func StartAndWait

func StartAndWait()

StartAndWait start and wait all task done

func Stop

func Stop()

Stop stop task

func Wait

func Wait()

Wait wait all task done

Types

type DoFunc

type DoFunc func(*context.Context)

DoFunc

Jump to

Keyboard shortcuts

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