github.com/nyan233/littlerpc@v0.4.6-0.20230316182519-0c8d5c48abaf/core/server/factory_2_builder.go (about)

     1  package server
     2  
     3  import (
     4  	"github.com/nyan233/littlerpc/internal/pool"
     5  )
     6  
     7  type poolBuilder[Key pool.Hash] func(bufSize, minSize, maxSize int32, rf pool.RecoverFunc) pool.TaskPool[Key]
     8  
     9  func (p poolBuilder[Key]) Builder(bufSize, minSize, maxSize int32, rf pool.RecoverFunc) pool.TaskPool[Key] {
    10  	return p(bufSize, minSize, maxSize, rf)
    11  }