func (f *Future) Cancel() {
	if !f.canceled {
		f.fc.Lock()
		defer f.fc.Unlock()
		delete(f.ent.reqs, f.cookie)
		f.result = nil
		f.canceled = true
	}
}
// Cancel signals that we are not interested in the future anymore.
// Note that calling this method does not cancel any pending factory
// function calls.
Cancel signals that we are not interested in the future anymore.
Note that calling this method does not cancel any pending factory
function calls.
// Cancel signals that we are not interested in the future anymore . // Note that calling this method does not cancel any pending factory // function calls .
func (f *Future) Cancel() {
	if !f.canceled {
		f.fc.Lock()
		defer f.fc.Unlock()
		delete(f.ent.reqs, f.cookie)
		f.result = nil
		f.canceled = true
	}
}
func ( f * Future ) Cancel ( ) { if ! f . canceled { f . fc . Lock ( ) defer f . fc . Unlock ( ) delete ( f . ent . reqs , f . cookie ) f . result = nil f . canceled = true } }
Cancel signals that we are not interested in the future anymore.
Cancel signals that we are not interested in the future anymore .