Refactoring:
- The current 7Chat (in 7-Eleven app Thailand) uses Coroutine but AmitySC uses Rx (link). Is it possible to support it because it required?
Refactoring:
Hi @jatupornsuk , thank you for the inquiry.
Unfortunately, since the whole project is using RX from the beginning we’re not planning to migrate to Kotlin Coroutine yet. The reason being that, RX is not only a data pipeline, but we also use its operators that allow us to compose sequences together declaratively while abstracting away concerns about things like low-level threading, synchronization, thread-safety and concurrent data structures. And yes, changing a technology will also impact all of our users too.
However, there’s a guideline to convert RX to coroutines by Kotlin contributors here
Thank you very much
Yes, supporting Coroutines for refactoring is possible and often beneficial. Coroutines provide a more efficient way to handle asynchronous programming by avoiding callback hell and simplifying the code. When refactoring, integrating Coroutines can lead to cleaner, more readable, and maintainable code. It also enhances performance by enabling non-blocking operations and improving resource management.