sysulq / goroutine-pool

A simple goroutine pool which can create and release goroutine dynamically, inspired by fasthttp.

Home Page:https://hnlq715.github.io/goroutine-pool/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How would this work in a producer consumer problem?

SUP3RIA opened this issue · comments

How would you implement a consumer and a producer here?

Start pool before consumer loop, and just use pool.Go func to create goroutine directly.