fn

package
v0.0.0-...-a626ee0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(fns []Promise, maxs ...int) (lst []interface{}, err error)

并发执行,并收集全部结果

func WorkFlow

func WorkFlow(lst interface{}, max int, fn func(i interface{}, idx int) (v interface{}, e error)) (ret []interface{}, e error)

Types

type Promise

type Promise func() (i interface{}, e error)

Jump to

Keyboard shortcuts

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