oxen-io / session-android

A private messenger for Android.
https://getsession.org
GNU General Public License v3.0
1.73k stars 165 forks source link

Remove the use of executor in ThreadUtils #1520

Closed simophin closed 1 week ago

simophin commented 1 week ago

Description

The executor inside ThreadUtils is causing RejectedException from time to time. This would fail at different kind of jobs randomly, some of which might impact the message syncing functionality. This PR removes the usage of the executor and use coroutine's dispatcher where such rejection doesn't happen.