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

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

XMLWordPrintable

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

      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.

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

                Created:
                Updated: