go-co: github.com/magicdawn/go-co/coutil Index | Files

package coutil

import "github.com/magicdawn/go-co/coutil"

Index

Package Files

debug.go each.go map.go

func Each Uses

func Each(
    items []interface{},
    fn func(interface{}, int, []interface{}) *co.Task) *co.Task

Each: coutil.Each iterate a array

example:

coutil.Each(arr, func(item, index, arr) { ... })

func Map Uses

func Map(
    items []interface{},
    fn func(interface{}, int, []interface{}) *co.Task,
    concurrency int) *co.Task

Map : coutil.Map with concurrency

Package coutil imports 2 packages (graph). Updated 2020-07-11. Refresh now. Tools for package owners.