reactor/reactor-core

Inconsistency in marble illustration for Flux.scan

Open

#4.042 geöffnet am 23. Juni 2025

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Java (1.164 Forks)batch import
help wantedtype/documentation

Repository-Metriken

Stars
 (4.748 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 16T 15h) (25 gemergte PRs in 30 T)

Beschreibung

Documentation Issue

The current marble illustrations for Flux.scan with initial value and initial value supplier seem misleading to me, as the behaviour of both operators is very similar. On one hand, scan.svg shows no initial value before the processing of the stream, which is inconsistent with what the docstring says. On the other hand, scanWith.svg has an initial value, but wierdly ignores it in the second iteration (green marble), which is also inconsistent with the docstring.

I hope I got this correctly, if not thank you for correcting my understanding.

Improvement Suggestion

I think both illustrations should be similar, with an initial value represented as the white square, followed by the accumulation with input flux items.

Additional context

I would gladly propose the change myself, but I don't know where to find the base material to generate those marble SVGs.

Contributor Guide