Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "Blocking Mono Result" example #3599

Merged
merged 1 commit into from
May 24, 2024

Conversation

pivovarit
Copy link
Contributor

The provided example did not compile for two reasons:

  • no matching Mono.zip() signature that accepts two Publishers (just Monos)
  • no Flux#delay anymore

Replaced the example with a more idiomatic usage - Mono.delay() followed by then() instead of Mono.just() followed by argument-discarding map(). I allowed myself to replace currentTimeMillis with Instants so that it's easier to see the difference when printed out

The provided example does not compile for two reasons:
        - no matching `Mono.zip()` signature that accepts two `Publishers` (just `Mono`s)
        - no `Flux#delay` anymore

Replaced the example with a more idiomatic usage - `Mono.delay()` followed by `then()` instead of `Mono.just()` followed by argument-discarding `map()`
@pivovarit pivovarit requested a review from a team as a code owner October 2, 2023 19:24
@pivotal-cla
Copy link

@pivovarit Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

1 similar comment
@pivotal-cla
Copy link

@pivovarit Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-cla
Copy link

@pivovarit Thank you for signing the Contributor License Agreement!

Copy link
Member

@chemicL chemicL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @pivovarit :) I know it has been open for some time but I finally got to it and it is still helpful so I'll merge it now.

@chemicL chemicL added the type/documentation A documentation update label May 24, 2024
@chemicL chemicL added this to the 3.7.0-M3 milestone May 24, 2024
@chemicL chemicL merged commit 0df9ed5 into reactor:main May 24, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/documentation A documentation update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants