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

Run ForEach/Peek user code on a blocking thread

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 13.0.0.Final
    • 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

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

              Dates

                Created:
                Updated: