Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for AbortController. #606

Merged
merged 1 commit into from
May 19, 2024
Merged

Conversation

andycall
Copy link
Member

@andycall andycall commented May 5, 2024

@override
String invoke(String method, params, InvokeModuleCallback callback) {
if (method == 'abortRequest') {
_abortRequest();
return '';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return EMPTY_STRING is better ?

@@ -223,7 +230,7 @@ export class Request extends Body {
// readonly redirect: RequestRedirect; // not supported
// readonly referrer: string; // not supported
// readonly referrerPolicy: ReferrerPolicy;
// readonly signal: AbortSignal; // not supported
readonly signal: AbortSignal; // not supported

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// not supported should be deleted

@andycall andycall merged commit 46297da into main May 19, 2024
30 checks passed
@andycall andycall deleted the feat/abort_controller_support branch May 19, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants