Feel like I’m asking a lot of stupid questions right now, but hopefully I’ll be able to contribute to the docs a bit after all of this! How do you send a message from a thread back to the main thread to do something like update the UI?
I’ve seen the ports and the like for passing data, but not sure how you actually get the parent (main) thread ID. Then I found be_app_messenger and assumed using SendMessage() on that would dispatch to the main looper but that doesn’t appear to be the case. Am I just using that wrong or barking up the wrong tree entirely (trying to avoid blocking the main thread while making a network request in response to user input).