Ryan Brink
01/08/2023, 3:58 PMAdam S
01/08/2023, 4:06 PMRyan Brink
01/08/2023, 5:54 PMcreated 6 years ago😞
Ryan Brink
01/08/2023, 5:54 PMDominaezzz
01/08/2023, 8:03 PMto()
function body directly then capture the result in anonymous object.Emanuel Moecklin
01/08/2023, 10:33 PMto()
has to be a suspend function? it's just creating an object, no suspend functions are being called so just make it a regular functionEmanuel Moecklin
01/08/2023, 10:37 PMthe coding conventions state that properties should be “cheap to calculate” and I would go even further and say, they should only contain trivial calculations.
Suspend does not really fit well with this idea of properties.https://discuss.kotlinlang.org/t/suspend-variables-suspend-val-suspend-var/13142