// push sends a new work task to currently live miner agents.
push sends a new work task to currently live miner agents.
// push sends a new work task to currently live miner agents .
func (self *worker) push(work *Work) {
	if atomic.LoadInt32(&self.mining) != 1 {
		return
	}
	for agent := range self.agents {
		if ch := agent.Work(); ch != nil {
			ch <- work
		}
	}
}
func ( self * worker ) push ( work * Work ) { if atomic . LoadInt32 ( & self . mining ) != 1 { return } for agent := range self . agents { if ch := agent . Work ( ) ; ch != nil { ch <- work } } }
push sends a new work task to currently live miner agents.
push sends a new work task to currently live miner agents .