original_string: protected function getNextTransport(): ?TransportInterface
      {
          $cursor = $this->cursor;
          while (true) {
              $transport = $this->transports[$cursor];
  
              if (!$this->isTransportDead($transport)) {
                  break;
              }
  
              if ((microtime(true) - $this->deadTransports[$transport]) > $this->retryPeriod) {
                  $this->deadTransports->detach($transport);
  
                  break;
              }
  
              if ($this->cursor === $cursor = $this->moveCursor($cursor)) {
                  return null;
              }
          }
  
          $this->cursor = $this->moveCursor($cursor);
  
          return $transport;
      }
code: protected function getNextTransport(): ?TransportInterface
      {
          $cursor = $this->cursor;
          while (true) {
              $transport = $this->transports[$cursor];
  
              if (!$this->isTransportDead($transport)) {
                  break;
              }
  
              if ((microtime(true) - $this->deadTransports[$transport]) > $this->retryPeriod) {
                  $this->deadTransports->detach($transport);
  
                  break;
              }
  
              if ($this->cursor === $cursor = $this->moveCursor($cursor)) {
                  return null;
              }
          }
  
          $this->cursor = $this->moveCursor($cursor);
  
          return $transport;
      }
code_tokens: protected function getNextTransport ( ) : ? TransportInterface { $ cursor = $ this -> cursor ; while ( true ) { $ transport = $ this -> transports [ $ cursor ] ; if ( ! $ this -> isTransportDead ( $ transport ) ) { break ; } if ( ( microtime ( true ) - $ this -> deadTransports [ $ transport ] ) > $ this -> retryPeriod ) { $ this -> deadTransports -> detach ( $ transport ) ; break ; } if ( $ this -> cursor === $ cursor = $ this -> moveCursor ( $ cursor ) ) { return null ; } } $ this -> cursor = $ this -> moveCursor ( $ cursor ) ; return $ transport ; }
docstring: Rotates the transport list around and returns the first instance.
docstring_tokens: Rotates the transport list around and returns the first instance .