Jan Stoltman
07/22/2019, 8:45 AMResult
in my K/Mpp project and I'm facing a lot of Result cannot be used as a return type
warnings. freeCompilerArgs = ["-Xallow-result-return-type"]
makes it so it can compile just fine, but the warnings are still there which is pretty annoying. Am I missing some other flag which would me allow to get rid of these IDE warnings?ribesg
07/22/2019, 8:50 AMgildor
07/22/2019, 9:13 AMgildor
07/22/2019, 9:15 AMJan Stoltman
07/22/2019, 9:40 AMDominaezzz
07/22/2019, 9:47 AMJan Stoltman
07/22/2019, 9:50 AMDominaezzz
07/22/2019, 10:11 AMJan Stoltman
07/22/2019, 10:29 AMDominaezzz
07/22/2019, 10:34 AMrunCatching
and then do functional stuff when it wants to. Kotlin is still an imperative language although it has some functional features.Dominaezzz
07/22/2019, 10:34 AMgildor
07/22/2019, 11:03 AMWhere it has to be functionalAsync code not necessary functional
gildor
07/22/2019, 11:04 AMgildor
07/22/2019, 11:04 AMgildor
07/22/2019, 11:05 AMJan Stoltman
07/22/2019, 11:49 AMDominaezzz
07/22/2019, 12:12 PMDominaezzz
07/22/2019, 12:13 PMDominaezzz
07/22/2019, 12:14 PMResult
and coroutine cancellation may not play nice together.gildor
07/22/2019, 3:18 PM