concurrent

package
v0.0.0-...-c4f60fb Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadLine

func ReadLine(r io.ReadCloser) <-chan Line

func ReadLines

func ReadLines(r io.ReadCloser) ([]string, error)

Types

type Data

type Data map[string]interface{}

func Call

func Call(
	ctx context.Context, concurrent int, f Func,
) []Data

type Func

type Func func(ctx context.Context, ch chan Data) error

type Line

type Line struct {
	Value string
	Error error
}

Jump to

Keyboard shortcuts

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