Skip to content

Commit

Permalink
Merge pull request #425 from mvdorian/patch-1
Browse files Browse the repository at this point in the history
fix(docs): move retry text block under retry code example
  • Loading branch information
skydoves authored Dec 29, 2024
2 parents 67de338 + 10ad0ba commit 5f1779e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ val apiResponse = runAndRetry(retryPolicy) { attempt, reason ->
// Handle failure cases
}
```
This setup allows you to define a retry policy that determines whether a retry attempt should occur and specifies the retry timeout. The `runAndRetry` extension then encapsulates the execution logic, applying the defined policy, and providing the response in a clean and structured manner.

### Sequential

Expand Down Expand Up @@ -583,7 +584,6 @@ public class NetworkInitializer : Initializer<Unit> {
}
```

This setup allows you to define a retry policy that determines whether a retry attempt should occur and specifies the retry timeout. The `runAndRetry` extension then encapsulates the execution logic, applying the defined policy, and providing the response in a clean and structured manner.

## Find this library useful? :heart:
Support it by joining __[stargazers](https://github.com/skydoves/sandwich/stargazers)__ for this repository. :star: <br>
Expand Down

0 comments on commit 5f1779e

Please sign in to comment.