Exemplo n.º 1
0
 private async void AddClinical()
 {
     while (await _clinicalChannel.Reader.WaitToReadAsync())
     {
         while (_clinicalChannel.Reader.TryRead(out var variant))
         {
             ClinicalAnnotationProvider.Annotate(variant);
         }
     }
 }
Exemplo n.º 2
0
 private void AddClinicalAnno()
 {
     while (true)
     {
         _clinicalSemaphore.Wait();
         if (_isComplete)
         {
             break;
         }
         ClinicalAnnotationProvider.Annotate(_variant);
         _clinicalDone.Release();
     }
 }
Exemplo n.º 3
0
 private void AddClinical()
 {
     while (true)
     {
         _clinicalConsumer.Wait();
         if (!_clinicalQueue.TryDequeue(out var variant))
         {
             if (_isCancelled)
             {
                 break;
             }
             continue;
         }
         ClinicalAnnotationProvider.Annotate(variant);
         _clinicalProducer.Release();
     }
 }
Exemplo n.º 4
0
        private void AddClinical()
        {
            while (true)
            {
                _clinicalSemaphore.Wait();
                if (_isCancelled)
                {
                    break;
                }
                foreach (var variant in _variants)
                {
                    ClinicalAnnotationProvider.Annotate(variant);
                }

                _clinicalDone.Release();
            }
        }