Merge cursor advance logic

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Right now, Cursor::advance and the Stream implementation for Cursor use distinct implementations of the "get from buffer, call get more if buffer is empty, check for exhaustion" core logic. This nontrivial to deduplicate because the former is written directly as {{async fn}}s and the latter has to directly deal with polling, but ideally they'd be unified.

            Assignee:
            Unassigned
            Reporter:
            Abraham Egnor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: