anchor.diff:  
   %% @doc Check if the number or open requests is below the pipeline threshold
   %% @end
  --spec is_low(#requestqueue{}) -> boolean().
  +-spec is_low(rqueue()) -> boolean().
   is_low(Requestqueue) ->
       #requestqueue{low_limit=Low, queue=Queue} = Requestqueue,
       queue:len(Queue) =< Low.
  
positive.code: %% If the request queue is empty the function will throw a badarg error.
  %% TODO - rename this function tail and add pop function
  %% @end
  -spec pop(#requestqueue{}) -> rqueue().
  pop(Requestqueue) ->
      #requestqueue{queue=Queue} = Requestqueue,
      case queue:out(Queue) of
  
negative.code: 
  %% @doc Get the list of chunks in the request queue
  %% @end
  -spec to_list(rqueue()) -> [requestspec()].
  to_list(Requestqueue) ->
      #requestqueue{queue=Queue} = Requestqueue,
      queue:to_list(Queue).
  