thriftrw: go.uber.org/thriftrw/internal/concurrent Index | Files

package concurrent

import "go.uber.org/thriftrw/internal/concurrent"

Index

Package Files

range.go

func Range Uses

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.

Package concurrent imports 4 packages (graph) and is imported by 3 packages. Updated 2020-01-19. Refresh now. Tools for package owners.