Skip to main content
2 events
when toggle format what by license comment
Oct 21, 2022 at 18:22 comment added Tenfour04 Good call setting false in a finally block. I'd suggest a different name than run because it shadows the name of standard library top-level function, impacting readability. Another possible improvement is to replace postValue() with withContext(Dispatchers.Main.immediate){ value = ... } to avoid unnecessary deferring of the UI change by a frame.
Sep 28, 2022 at 17:02 history answered K.H. CC BY-SA 4.0