coroutine

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: MIT, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConcurrent

func NewConcurrent(limit int) *concurrent

NewConcurrent returns a new concurrent helper.

func NewParallel

func NewParallel(limit int) *parallel

NewParallel 创建一个并发执行

limit 是启用协程的数量,若为0,则不限制协程数

func Parallel

func Parallel(callbacks []func() interface{}) []interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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