Skip to content

Commit

Permalink
CancellationToken is used internally in order to cancel requests sepa…
Browse files Browse the repository at this point in the history
…rately
  • Loading branch information
Kfir Matityahu committed Dec 16, 2024
1 parent 9ad1b9c commit da46e4d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions chopper_generator/lib/src/generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,7 @@ final class ChopperGenerator
.statement,
);

final Map<String, Expression> namedArguments = {
'cancellationToken': refer('client.cancellationToken'), // Add the cancellationToken argument
};
final Map<String, Expression> namedArguments = {};

final List<Reference> typeArguments = [];
if (responseType != null) {
Expand Down

0 comments on commit da46e4d

Please sign in to comment.