pjfanning commented on code in PR #1787: URL: https://github.com/apache/pekko/pull/1787#discussion_r1984575324
########## docs/src/main/paradox/stream/operators/Source-or-Flow/switchMap.md: ########## @@ -11,8 +11,9 @@ Transforms each input element into a `Source` of output elements that is then fl ## Description Transforms each input element into a `Source` of output elements that is then flattened into the output stream until a -new input element is received at which point the current (now previous) substream is cancelled (which is why this -operator is sometimes also called "flatMapLatest"). +new input element is received at which point the current (now previous) substream is cancelled while the `Source` resulting +from the input element is subscribed to and flattened into the output stream. So effectively, only the "latest" `Source` +is flattened into the output stream (which is why this operator is sometimes also called "flatMapLatest"). Review Comment: could you remove the 2nd space in `this operator`? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org For additional commands, e-mail: notifications-h...@pekko.apache.org