Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct { Cfg core.SimulationConfig Seed int64 }
type Pool ¶
func New ¶
func New(maxWorker int, respCh chan simulation.Result, errCh chan error) *Pool
New creates a new Pool. Jobs can be sent to new pool by sending to p.QueueCh Closing p.StopCh will cause the pool to stop executing any queued jobs and currently working workers will no longer send back responses
Click to show internal directories.
Click to hide internal directories.