Skip to content

Commit

Permalink
disable gopool bydefault
Browse files Browse the repository at this point in the history
  • Loading branch information
joway committed Oct 27, 2023
1 parent 93a6157 commit 83b8e7e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions connection_onevent.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ package netpoll
import (
"context"
"sync/atomic"

"github.com/bytedance/gopkg/util/gopool"
)

var runTask = gopool.CtxGo
//var runTask = gopool.CtxGo
var runTask = func(ctx context.Context, f func()) {
go f()
}

func setRunner(runner func(ctx context.Context, f func())) {
runTask = runner
Expand Down

0 comments on commit 83b8e7e

Please sign in to comment.