Matt Thiffault
10/01/2019, 7:33 AMtailrec fun myActor(context: Context, controlChannel: ReceiveChannel<Message>) : IO<Unit> = IO.fx {
val newContext = context.handleMessage(controlChannel) // Returns IO<Context>
myActor(newContext, controlChannel).bind()
}
However when I put my recursive call inside an IO.fx block, it doesn't recognize the recursive call as a tail call (which makes sense). Is there some mechanism in Arrow for allowing this or some other recommended way to do this?