Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Debug bool = true
)
Functions ¶
func Print ¶
Print formats using the default formats for its operands and writes to standard output. Spaces are added between operands when neither is a string. It returns the number of bytes written and any write error encountered.
Types ¶
type ThreadPool ¶
type ThreadPool struct { Size int // contains filtered or unexported fields }
func NewThreadPool ¶
func NewThreadPool(size int) *ThreadPool
func (*ThreadPool) Execute ¶
func (pool *ThreadPool) Execute(task *ThreadTask) bool
func (*ThreadPool) Shutdown ¶
func (pool *ThreadPool) Shutdown()
type ThreadTask ¶
type ThreadTask struct { Fn func(int, interface{}) Argv interface{} }
Click to show internal directories.
Click to hide internal directories.