Consider more specific contract around Scheduler#start() #3202
Labels
type/enhancement
A general enhancement
warn/behavior-change
Breaking change of publicly advertised behavior
Milestone
The inner workings of some
Scheduler#start()
consider the possibility todispose()
and thenstart()
the same instance again. There are a few issues due to it:Scheduler
s allow restarts, while others don't.dispose()
and the state after the call quite difficult - the only possibility to find out reliably if the Scheduler is disposed is to usedisposeGracefully()
and subscribe to the returnedMono
. Any call toisDisposed()
might be unreliable as there might have been concurrent restarts.Unless there is a need for the restart capabilities, the contract could be tightened and a disposed
Scheduler
would prohibit furtherstart()
calls.The text was updated successfully, but these errors were encountered: