Skip to content

[NICE FIRST CONTRIB] Additional examples for Stream operator docs #25468

@raboof

Description

@raboof

Many operators in the stream operator documentation section at https://doc.akka.io/docs/akka/current/stream/operators/index.html do not yet have code examples. Adding such a code example is a great contribution.

Examples of operators that does have example code are:
https://doc.akka.io/docs/akka/current/stream/operators/Source-or-Flow/log.html https://doc.akka.io/docs/akka/current/stream/operators/ActorFlow/ask.html .

Example code in Akka is included in the source tree and is compiled (and thus typechecked) on every build. Sometimes the examples even come from unit tests, so they are not only compiled but even ran and validated. If you can add or find a test that can be used as documentation that is great, otherwise the code can be added to the akka-docs subproject.

To add an example:

  • check that nobody claimed the operator in this issue yet
  • comment in this issue to 'claim' an operator
  • Add (or find) example code, mark it as a Paradox snippet (with //#xxx comments)
  • Add a snippet to the markdown file of your operator to include that snippet

Operators

Source operators

Sink operators

Converters

Simple operators

Flow operators composed of Sinks and Sources

Asynchronous operators

Timer driven operators

  • delay
  • dropWithin
  • groupedWeightedWithin
  • groupedWithin
  • initialDelay
  • takeWithin

Backpressure aware operators

  • batch
  • batchWeighted
  • buffer
  • expand
  • extrapolate

Nesting and flattening operators

Time aware operators

Fan-in operators

Fan-out operators

Watching status operators

Actor interop operators

Compression operators

  • Compression.gzip (reuse the example in Compression.gunzip)
  • Compression.gunzip
  • Compression.deflate (reuse the example in Compression.inflate)
  • Compression.inflate

Error handling

  • RestartSource.onFailuresWithBackoff Doc onFailureWithBackoff #28356
  • RestartFlow.onFailuresWithBackoff
  • RestartSource.withBackoff
  • RestartFlow.withBackoff
  • RestartSink.withBackoff

Metadata

Metadata

Assignees

No one assigned

    Labels

    1 - triagedTickets that are safe to pick up for contributing in terms of likeliness of being acceptedgood first issuehackathonIssues that could be tackled during a hackathonhelp wantedIssues that the core team will likely not have time to work ont:docst:stream

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions