It took me a while, but I just found jnthn's automatic retry code for supply-based things again.
It's in these slides http://jnthn.net/papers/2017-perl6-concurrency-pcp.pdf on page 83 You'll want to use "supply" instead of "react" for your server and pass that to the auto-retry function.