Skip to content
A collection of methods for running functions concurrently.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts
test
.gitignore
.travis.yml
Gopkg.lock
Gopkg.toml
LICENSE
README.md
async.go
async_test.go
pool.go
pool_test.go

README.md

async

Build Status Go Report Card GoDoc License: MIT

A collection of methods for running functions concurrently.

Installation

go get -u github.com/eleniums/async

Example

Create some tasks to run:

foo := func() error {
    // do something
    return nil
}

bar := func() error {
    // do something else
    return nil
}

Run the tasks concurrently:

errc := async.Run(foo, bar)
err := async.Wait(errc)
if err != nil {
    log.Fatalf("task returned an error: %v", err)
}
You can’t perform that action at this time.