Skip to content

Commit

Permalink
Fix sample code for Timeout overload
Browse files Browse the repository at this point in the history
The overload takes a `Func<TimeSpan>`, and it is assumed that we already have a lambda variable called `myTimeoutProvider, but the variable is incorrectly passed to the overload.
  • Loading branch information
prodehghan authored and martincostello committed Apr 11, 2023
1 parent b861dbd commit 58efa86
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 @@ -619,7 +619,7 @@ Policy

// Configure variable timeout via a func provider.
Policy
.Timeout(() => myTimeoutProvider)) // Func<TimeSpan> myTimeoutProvider
.Timeout(myTimeoutProvider)) // Func<TimeSpan> myTimeoutProvider
// Timeout, calling an action if the action times out
Policy
Expand Down

0 comments on commit 58efa86

Please sign in to comment.