code: func (m *CPUMiner) IsMining() bool {
  	m.Lock()
  	defer m.Unlock()
  
  	return m.started
  }
docs: // IsMining returns whether or not the CPU miner has been started and is
  // therefore currenting mining.
  //
  // This function is safe for concurrent access.