original_string: public static function wrapSync(
          callable $default,
          callable $sync
      ) {
          return function (RequestInterface $request, array $options) use ($default, $sync) {
              return empty($options[RequestOptions::SYNCHRONOUS])
                  ? $default($request, $options)
                  : $sync($request, $options);
          };
      }
code: public static function wrapSync(
          callable $default,
          callable $sync
      ) {
          return function (RequestInterface $request, array $options) use ($default, $sync) {
              return empty($options[RequestOptions::SYNCHRONOUS])
                  ? $default($request, $options)
                  : $sync($request, $options);
          };
      }
code_tokens: public static function wrapSync ( callable $ default , callable $ sync ) { return function ( RequestInterface $ request , array $ options ) use ( $ default , $ sync ) { return empty ( $ options [ RequestOptions :: SYNCHRONOUS ] ) ? $ default ( $ request , $ options ) : $ sync ( $ request , $ options ) ; } ; }
docstring: Sends synchronous requests to a specific handler while sending all other
  requests to another handler.
  
  @param callable $default Handler used for normal responses
  @param callable $sync    Handler used for synchronous responses.
  
  @return callable Returns the composed handler.
docstring_tokens: Sends synchronous requests to a specific handler while sending all other requests to another handler .