defertaskthread

package
v0.30.5 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Go

func Go(deferMs int, task TaskFn, param ...interface{})

Types

type DeferTaskThread

type DeferTaskThread interface {
	// 注意,一个thread的多个task,本应该是串行执行的语义,
	// 目前为了简单,让它们并行执行了,以后可能会发生变化
	Go(deferMs int, task TaskFn, param ...interface{})
}

func NewDeferTaskThread

func NewDeferTaskThread() DeferTaskThread

type TaskFn

type TaskFn func(param ...interface{})

Jump to

Keyboard shortcuts

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