Skip to content

method of pulling output is painful #19

@Anniepoo

Description

@Anniepoo

Having the httpRequest for pull_response wait until there is some is painful.

See for example the code

          if (proof.getNearestInt("X") < 3) {  // change this to a larger number to see it hang
              // this hangs on the last proof
              // This is referred to in https://github.com/SWI-Prolog/pengines/issues/19
              String out = io.getOutput();
              if(out != null) {
                  System.out.println("I got " + out + " from the server");
              }
          }

in ManualAsk.java in JavaPengines.

Am I off in the weeds here, or is this just painful?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions