The CompletionStage returned by future methods will continue execution on a Tokio thread if any of the async combinators are used, e.g. CompletionStage.theAccept(...).
This can cause problems if the chained computation calls anything that might use block_on.
Java doesn't have a global executor thread poll like C# does. We need to do one of the following:
- Carefully review our usage of
block_on in each library (or remove it altogether).
- Initialize a static thread poll on which the Java backend can complete futures.
The
CompletionStagereturned by future methods will continue execution on a Tokio thread if any of the async combinators are used, e.g. CompletionStage.theAccept(...).This can cause problems if the chained computation calls anything that might use
block_on.Java doesn't have a global executor thread poll like C# does. We need to do one of the following:
block_onin each library (or remove it altogether).