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

Evaulate if Stream#peek and Stream#forEach should be ran in blocking thread

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Major
    • None
    • None
    • Core, Streams
    • None

    Description

      The peek and forEach consumers for both CacheStream and LockedStream can be ran on non blocking threads. Since these consumers are designed with blocking API in mind they may very well invoke methods that will block the current thread.

      We should either make sure that these consumers never invoke blocking methods or possibly run these methods in a blocking thread and resume again on a non blocking thread.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wburns@redhat.com Will Burns
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: