Phani Mahesh
10/02/2020, 2:34 PMcsvReader.open(file) { ... }
function from a library. The problem is the lambda is not suspend-aware. Is there any way to call a suspend fn in the lambda there other than calling runBlocking? FWIW, this is all inside a suspending function, so I do not want to do runBlocking
inside a suspend
function. It just feels so wrong.nanodeath
10/02/2020, 2:40 PMsuspend
, the open
function callback is not suspend
, and you want to be able to call other suspend
methods from inside the callback?Phani Mahesh
10/02/2020, 2:40 PMAdam Powell
10/02/2020, 2:52 PMPhani Mahesh
10/02/2020, 2:54 PMPhani Mahesh
10/02/2020, 3:02 PM