Skip to content
Discussion options

You must be logged in to vote

Infrastructure.getDefaultExecutor() does not go back on the event loop. In addition, you should NOT go back to the same event loop, but go back to the same context (slightly different).

So, to do this you either need to capture the context and switch back using:

.emitOn(runnable -> captured.runOnContext(x -> runnable.run())

Or use a a context aware executor as documented on https://quarkus.io/guides/vertx-reference#use-a-vert-x-context-aware-scheduler (recommended)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ozzyozbourne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants