Skip to content

Commit

Permalink
fix(docs): move retry text block under retry code example
Browse files Browse the repository at this point in the history
This paragraph seemed out of place so I moved it under the retry code example.
  • Loading branch information
mvdorian authored Dec 28, 2024
1 parent 67de338 commit 10ad0ba
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 10ad0ba

Please sign in to comment.