ably / ably-asset-tracking-swift

iOS client SDKs for the Ably Asset Tracking service.
Apache License 2.0
9 stars 6 forks source link

Publisher example: Make sure we start publisher from main thread #446

Closed lawrence-forooghian closed 1 year ago

lawrence-forooghian commented 1 year ago

I noticed that in the publisher example app, the trackables are no longer transitioning to the online state. This appears to have been broken by a change in ac20806 where we started creating the publisher inside an async function and hence potentially no longer on the main thread.

This SDK does not explain the rules re from which threads it can be interacted with. I have created #445 to decide and document these rules.