Does Arrow have a way to repeatedly run a predicat...
# arrow
r
Does Arrow have a way to repeatedly run a predicate to monitor something, as a way to bridge into the async stuff, which expects suspending functions? I am imagining that the predicate would return true when the async computation has finished (be it success or failure), at which point arrow should call the correct callback.
p
tailrecM may be the choice, you check the result after a sleep and see if the value corresponds with what you want
r
I ended up doing that, was just wondering if there was a built-in way.
tailrecM
is just fine, though.
p
great!