Closed simonmcl closed 2 years ago
Thanks for the suggestion! We've taken some time to discuss it internally but eventually decided against proceeding with the changes. We don't want to force handling anything on the main thread if it doesn't have to be handled on the main thread. We're leaving the choice to the developer who has the context and a broader view of their actions and requirements.
We'll update the docs to make sure that it's always clear on what thread callbacks are executed, though.
Most of the callbacks used are connected to a UI event, but all callbacks are returned on a background thread. I think the majority, if not all, should be bounced back to the main thread.
Examples: