What am I missing?
I don’t see that working unless Foo.check_is_good()
is actually Foo.return_when_good()
- i.e. yield/2
in the docs doesn’t seem to imply any looping behaviour - so the looping (e.g. recursing) behaviour would have to be built into the function (task) being called.
Here I simply wrote a wait/3
function for the desired effect.