I'm a bit confused about async. If I run animations like content.ScaleTo(1, 300, Easing.CubicInOut) awaited in an async function will that be ok or does it cause an issue since it's not on the main thread?
await will block the function, like
Only B is finished, C can be called.
if you do
B(); //async function
After A, it will call C() directly, no wait B() finished.
@JoshuaNovak.6915 - Now that we have the source code, this question is easy to answer.
Animations or anything to do with the UI must be done on the main thread, you are correct there.
However in the ScaleTo (or other animation code) you can go all the way down and see this piece of code
Meaning it will place it on the UI thread when it needs to but everything else can be running on a different thread.
@AdamP Thanks! That's exactly what I was looking for. I saw many articles saying you needed to put it on the main thread and many saying async works. I guess they were both right lol.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies