Skip to content

Passing context between chained Uni #1326

Answered by jponge
gnieser asked this question in Q&A
Discussion options

You must be logged in to vote

Contexts are not created at the start of the chain but by the entity that performs the initial subscription.

1st snippet: you need to pass the context at subscription time using .awaitUsing(context).

2nd snippet: you won't have a context, I don't recall Quarkus providing one for reactive methods.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jponge
Comment options

Answer selected by gnieser
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants