package
1.0.3
Repository: https://github.com/lngwu11/toolgo.git
Documentation: pkg.go.dev

# README

gopool

Introduction

gopool is a high-performance goroutine pool which aims to reuse goroutines and limit the number of goroutines.

It is an alternative to the go keyword.

Features

  • High Performance
  • Auto-recovering Panics
  • Limit Goroutine Numbers
  • Reuse Goroutine Stack

QuickStart

Just replace your go func(){...} with gopool.Go(func(){...}).

old:

go func() {
	// do your job
}()

new:

gopool.Go(func(){
	/// do your job
})