what would be a way to "fork" an operation (suspen...
# arrow
s
what would be a way to "fork" an operation (suspend function) to a different scope with arrow-fx-coroutines? .... let's say on Android, I trigger an action from a ViewModel (using
viewModelScope
) which calls a suspend function in a Repository layer..... I want to suspend until the repo function executes, but also if the
viewModelScope
is canceled I don't wanna cancel the repository operation. I wanna tie the repository operation to an application level scope instead
y
I believe for a while now arrow-fx-coroutines has been depending on kotlinx-coroutines, and so you can just use
withContext
for this