I’m writing a CLI. It posts a file to a remote server (working fine) and then polls the server until a particular resource is available. I’m not sure what the best approach is. It looks like I might want to use tokio’s poll_fn, but I’m not sure if it’s a good fit and work bringing the entire tokio runtime into my app.
Please recommend approaches. Code examples or links to tutorials are definitely welcome.