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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pivovarit
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants