Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
stfndamjanovic committed Jan 18, 2024
1 parent e37a1b0 commit ab052cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ composer require stfndamjanovic/php-circuit-breaker

## Usage

Wrap your potentially error-prone function with the circuit breaker, and it will monitor and handle failures gracefully. The circuit breaker tracks the occurrence of exceptions and takes preventive measures, such as opening the circuit, if failures become too frequent. During the circuit open state, calls to the function are temporarily halted, allowing the system to recover. You have the flexibility to configure the timespan for which the circuit remains open which we will explain later.

```php
use Stfn\CircuitBreaker\CircuitBreaker;

Expand Down

0 comments on commit ab052cb

Please sign in to comment.