Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPool ¶
type IPool interface { Submit(task func()) Release() Running() int }
IPool - pooling interface
type MockedGPoolingImpl ¶
type MockedGPoolingImpl struct { }
MockedGPoolingImpl - mocking
func (*MockedGPoolingImpl) Release ¶
func (p *MockedGPoolingImpl) Release()
Release - release all gorotine
func (*MockedGPoolingImpl) Running ¶
func (p *MockedGPoolingImpl) Running() int
Running - returns the number of the currently running goroutines.
func (*MockedGPoolingImpl) Submit ¶
func (p *MockedGPoolingImpl) Submit(task func())
Submit - submit a task to this pool
Click to show internal directories.
Click to hide internal directories.