michaelv
01/31/2022, 6:33 AMasync { <viewModel function to run> }
from the view, but from the unit tests it doesn’t do anything using this async {}
syntax since it doesn’t wait for it. It seems that it’s not normal to call it like that in unit tests and just call it with try await
only. However if I do that I get the IncorrectDereferenceException. I’m not sure if it’s currently possible to do it or if I just wasn’t doing it right. I’m not using the new memory model but maybe that would work. It’s not a big deal as I have it working without async/await but I really like the async/await syntax and eventually want to move to it. https://johnoreilly.dev/posts/swift_async_await_kotlin_coroutines/Sam
01/31/2022, 4:41 PMNikolay Kasyanov
01/31/2022, 7:10 PMmichaelv
01/31/2022, 9:27 PM