Skip to content

Commit

Permalink
feat: RhttpCompatibleClient.close cancels requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tienisto committed Aug 28, 2024
1 parent 8ea3a49 commit 2b81f46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions rhttp/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- feat: add `baseUrl` setting to `ClientSettings`
- feat: add `redirectSettings` to `ClientSettings`
- feat: add `RhttpRedirectException`
- feat: `RhttpCompatibleClient.close` cancels all running requests similar to `IOClient` of `http` package

## 0.6.1

Expand Down
2 changes: 1 addition & 1 deletion rhttp/lib/src/client/compatible_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class RhttpCompatibleClient with BaseClient {

@override
void close() {
client.dispose();
client.dispose(cancelRunningRequests: true);
}
}

Expand Down

0 comments on commit 2b81f46

Please sign in to comment.