Skip to content

Commit

Permalink
Update README.md (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-filho authored Oct 19, 2023
1 parent c7dfc6f commit 0ee4b77
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,14 @@ class UsersController < BaseController
end
```

### Types precedence

FService matches types from left to right, from more specific to more generic.
Example (:unprocessable_entity, :client_error, :http_response)
Then, result will match first :unprocessable_entity, after :client_error, after :http_response, then not matched.
### Type precedence

FService matches the service's types from left to right, from more specific to more generic.
For example, the following result `Failure(:unprocessable_entity, :client_error, :http_response)` will match in the following order:
1. `:unprocessable_entity`;
2. `:client_error`;
3. `:http_response`;
4. unmatched block;

### Chaining services

Expand Down

0 comments on commit 0ee4b77

Please sign in to comment.