Skip to content

Commit

Permalink
Document runAsync method
Browse files Browse the repository at this point in the history
  • Loading branch information
michel-kraemer committed Sep 13, 2022
1 parent 800e3df commit 09d1eca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ task myTask {
}
```

Note that the `download` extension also has a `runAsync` method that downloads
a file asynchronously. It returns a `CompletableFuture` that either completes
successfully or exceptionally depending on whether the download has finished
successfully or if it has failed. Make sure to always wait for the result of
the `CompletableFuture`. Otherwise, errors might get lost.

Minimum requirements
--------------------

Expand Down

0 comments on commit 09d1eca

Please sign in to comment.