-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix the Vert.x event loop integration
The Vert.x event loop integration used to assume that all Vert.x threads always have a current context associated. That isn't necessarily true, especially in case of worker threads, where a task can easily be submitted to the worker thread pool as an ordinary thread pool, outside of a Vert.x context. In that case, the thread cannot be treated as an event loop. Additionally, this commit synchronizes the thread offload fallback function with the thread offload strategy, so that if there's an event loop remembered, the fallback is executed on it instead of the main executor.
- Loading branch information
Showing
2 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters