🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

github.com/forPelevin/go-async-worker

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/forPelevin/go-async-worker

v0.0.0-20190706215826-8a78edc1a187
Version published
Created

Go async worker

The Golang module that provides functions to handle jobs concurrently.

Getting Started

  • Download the project from github to your host machine.
  • Go to the folder with project

Prerequisites

For the successful using you should have:

go >= 1.12

Running the tests

It's a good practice to run the tests before using the module to make sure everything is OK.

go test -v

Sample of using

hwFunc := func() error {
    fmt.Println("Hello world!")
    return nil
}
err := Handle([]JobFunc{hwFunc,hwFunc}, 2, 0)
...

License

This project is licensed under the MIT License.

FAQs

Package last updated on 06 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts