Let\'s assume that I have a function getData() returning an array of classes from database, which costs some time to do. I\'ve got an lateinit var data
getData()
lateinit var data