Skip to content

Review Java callbacks and threading #69

Description

@jadamcrain

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:

  1. Carefully review our usage of block_on in each library (or remove it altogether).
  2. Initialize a static thread poll on which the Java backend can complete futures.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions