Closed ConfusedVorlon closed 2 years ago
withDelaysIfUnsupported (line 112) needs to run on the main thread as it publishes changes to routes.
Although it is called from a Task{@MainActor...) , that doesn't guarantee that it is run on MainActor as it is called async-ly
I'm getting purple runtime errors at the moment, and this fixes them!
Thanks @ConfusedVorlon - I'm still getting used to the new concurrency stuff!
thanks for the rapid merge.
I wish there was better docs on this stuff - I keep hitting unexpected behaviour...
withDelaysIfUnsupported (line 112) needs to run on the main thread as it publishes changes to routes.
Although it is called from a Task{@MainActor...) , that doesn't guarantee that it is run on MainActor as it is called async-ly
I'm getting purple runtime errors at the moment, and this fixes them!