private static bool IsSearchCanceled(IQueueAccessor<int, SearchField[]> queue) { return queue.StopRequested || queue.HasWork; }