Alex Edwards
11/01/2021, 2:15 PMDeferred<Map<String, String>?
options.asPromise().then { // get a value from the options map }.asDeferred()Pitel
11/01/2021, 2:24 PMawait(), because you're not in coroutine, right?Alex Edwards
11/01/2021, 3:19 PMval setting = options['settingName'] in my code I don’t often need to add additional coroutines as the functions are usually suspend functions (lots of this code is in db service classes) and i can call await() from there