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
Fix AndroidSchedulers to create an instance using hook only once.
Previously we were asking the hook for an instance every time `mainThread()` was called. This not only impacted performance, but also broke the contract the that hook was a factory–instead requiring that it behave like a thread-safe, lazily-initialized instance cache.
If for whatever reason you do need to change the instance over time, return a scheduler instance which delegates to another and allows swapping out the delegate.
0 commit comments