// Forbid forbid tasks with key, future tasks with the key cannot be offered
Forbid forbid tasks with key, future tasks with the key cannot be offered
// Forbid forbid tasks with key future tasks with the key cannot be offered
func (q *TimeoutQueue) Forbid(key interface{}) {
	q.mu.Lock()
	defer q.mu.Unlock()
	q.blackList[key] = struct{}{}
}
func ( q * TimeoutQueue ) Forbid ( key interface { } ) { q . mu . Lock ( ) defer q . mu . Unlock ( ) q . blackList [ key ] = struct { } { } }
Forbid forbid tasks with key, future tasks with the key cannot be offered
Forbid forbid tasks with key future tasks with the key cannot be offered