-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomerspkg:retry
Description
Hi,
I'd like to retry if the returned object meets a condition.
Example:
final response = await retry(
// Make a GET request
() => http.get('https://google.com'),
// Retry on Exception
retryIf: (e) => e is SocketException,
retryIfReturnedObject: (o) => o == "retry-please"
);
is this possible?
Thanks
nwparker, rajada1, florentmsl and matheuscsant
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomerspkg:retry