gsaslis / radicle-ci-broker

A placeholder project to use for issue tracking
0 stars 0 forks source link

Implement a Future for polling #18

Open Archimidis opened 1 year ago

Archimidis commented 1 year ago

This came as a suggestion from fintohaps on the following snippet.

            term::info!("Creating the pipeline");
            let result = self.api.create_pipeline(project_name, patch_branch, patch_head, &project_id, git_uri).await;

            // TODO: Poll until pipeline is created
            sleep(Duration::from_secs(10)).await;