You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The FluxPublishOnSubscriber#runAsync will never escape its infinite loop if the call to onNext take longer time than the period between events from upstream.
This makes it so that the thread will never stop looping. And it has the unfortunate effect that; for a Scheduler of pool size N. If M (greater than N) upstream fluxes #publishOn that scheduler, only N of those fluxes will be subscribed and worked on.
While upstream supply is available I would prefer even distribution across all fluxes.
I suggest adding a flag to the publishOn that would allow control that the loop escape after requesting, or performing the request in the scheduler itself. This would free up the thread to pick up other tasks from the taskqueue.
The text was updated successfully, but these errors were encountered:
The FluxPublishOnSubscriber#runAsync will never escape its infinite loop if the call to
onNext
take longer time than the period between events from upstream.This makes it so that the thread will never stop looping. And it has the unfortunate effect that; for a
Scheduler
of pool sizeN
. IfM
(greater thanN
) upstream fluxes#publishOn
that scheduler, onlyN
of those fluxes will be subscribed and worked on.While upstream supply is available I would prefer even distribution across all fluxes.
I suggest adding a flag to the publishOn that would allow control that the loop escape after requesting, or performing the request in the scheduler itself. This would free up the thread to pick up other tasks from the taskqueue.
The text was updated successfully, but these errors were encountered: