concurrent

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Range

func Range(coll, fn interface{}) error

Range calls the function fn on all items in coll concurrently and waits for all calls to finish.

coll may be a slice or a map. If coll is a map, fn must accept the key and the value as its arguments, and otherwise it must accept an int index and the value as its arguments.

fn may return nothing or error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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