Back to

Package concurrent

Latest Go to latest
Published: Oct 17, 2019 | License: MIT | Module:


Package Files

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier