Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-13398

Run ForEach/Peek user code on a blocking thread

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 13.0.0.Final
    • None
    • Core, Streams
    • None
    • ---
    • ---

    Description

      forEach() and peek() stream methods give the application callback a Cache and allow side-effects, but do not accept a CompletionStage return value, so user code is almost forced to block.

      Because of this, the callback should run on a blocking thread.

      Attachments

        Issue Links

          Activity

            People

              dberinde@redhat.com Dan Berindei
              dberinde@redhat.com Dan Berindei
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: