fun methodA() : Flow { val xResult= "call some service that returns a string" return flow { emitAll(yMethod(xResult)) } } fun methodB() : Flow = flow { val xResult= "call some service that returns a string" emitAll(yMethod(xResult)) } fun methodC() : Flow { val xResult= "call some service that returns a string" return yMethod(xResult) } // yMethod has signature (x: String) -> Flow