Joris PZ
10/25/2018, 1:48 PMclass XYZ
and class BlockingXYZ
?)
• Provide a single API class with both suspending and blocking versions of my methods, i.e. suspend fun doABC()
and fun doABCBlocking()
Are any of these choices considered idiomatic? Or should I just do what feels right to me?arocnies
10/25/2018, 1:58 PMsuspend fun abc()
and if you want to provide Futures/Promises/Deferreds you would name them fun abcAsync()
Joris PZ
10/25/2018, 2:01 PMarocnies
10/25/2018, 2:05 PM