reactive-streams-commons
                                
                                 reactive-streams-commons copied to clipboard
                                
                                    reactive-streams-commons copied to clipboard
                            
                            
                            
                        Add IndexedQueue contract to optimize draining paths
IndexedQueue usually work with volatile consumer indices. We could define a convention to "batch" increment this index by doing it once at the end of drain loops instead of using queue.poll() that increments index everytime.