Skip to content

Bring back step() #9

Description

@epi

An active source with step can be wrapped like this:
Sink(AdapterSource(Source(AdapterSink)))
or Sink(AdapterSource(Source(ItsSource, AdapterSink)))

  1. Sink calls pull or peek on AdapterSource
  2. AdapterSource calls step(n) on Source, where n is a hint on how many elements are to be written to AdapterSink. (TODO: should n be just a hint or an exact required number?)
  3. Step calls alloc/commit or push on AdapterSink.
  4. AdapterSource gets data from AdapterSink and passes them to Sink.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions