Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
igor11191708 committed Mar 7, 2023
1 parent 5395513 commit f456534
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,21 @@ Network layer for running requests like GET, POST, PUT, DELETE etc customizable
/// - taskDelegate: A protocol that defines methods that URL session instances call on their delegates to handle task-level events
public func send<T>(
with request : URLRequest,
retry strategy : RetryService.Strategy = .exponential(retry: 5, duration: 2.0),
retry strategy : RetryService.Strategy,
_ taskDelegate: ITaskDelegate? = nil
) async throws -> Http.Response<T> where T : Decodable
```

## Retry strategy

This package uses stand alone package providing retry policy. The service creates sequence of the delays (nanoseconds) according to chosen strategy for more details foloe the link [retry service](https://github.com/The-Igor/retry-policy-service)

| type | description |
| --- | --- |
| constant | The strategy implements constant backoff |
| exponential [default] | The strategy implements exponential backoff |

for more details [retry service](https://github.com/The-Igor/retry-policy-service)


# The concept

Expand Down

0 comments on commit f456534

Please sign in to comment.