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
Register EventLoop as a Non-Blocking Thread in Reactor Scheduler 3.7.0+ (#6148)
Motivation:
The method `Schedulers.registerNonBlockingThreadPredicate` was
introduced in Reactor 3.7.0+. To maintain compatibility with older
Reactor versions, we should only register the EventLoop as a
non-blocking thread if this method is available. If the method is
unavailable (i.e., in Reactor versions lower than 3.7.0), a warning log
should be emitted instead of causing an error.
Modifications:
- Check for the existence of
`Schedulers.registerNonBlockingThreadPredicate` before invoking it.
- If the method is unavailable, log a warning instead of attempting
registration.
Result:
- Ensured compatibility with both newer and older Reactor versions.
0 commit comments