slice

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithSlice

func WithSlice(tr *TaskResource, taskFn TaskFunc) error

Types

type TaskFunc

type TaskFunc func(slice []interface{}) error

依赖闭包:

type TaskResource

type TaskResource struct {
	Resource  []interface{} // 资源
	SliceSize int           // 切片大小
	Sleep     time.Duration // 延迟 N 毫秒执行[1s = 1000毫秒]
}

Jump to

Keyboard shortcuts

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