defertaskthread

package
v0.30.49 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 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