Skip to content

experiment: requests v2#1643

Draft
GeopJr wants to merge 8 commits intomainfrom
feat/requests/v2
Draft

experiment: requests v2#1643
GeopJr wants to merge 8 commits intomainfrom
feat/requests/v2

Conversation

@GeopJr
Copy link
Copy Markdown
Owner

@GeopJr GeopJr commented Mar 24, 2026

sup: #1481
fix: #1480

Copy link
Copy Markdown
Collaborator

@bugaevc bugaevc left a comment

Choose a reason for hiding this comment

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

Some quick notes

}

public async bool exec (out GLib.InputStream in_stream, out Soup.MessageHeaders response_headers) throws GLib.Error, Oopsie {
if (this.cancellable != null && !this.cancellable.is_cancelled ()) this.cancellable.cancel ();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if (this.cancellable != null && !this.cancellable.is_cancelled ()) this.cancellable.cancel ();
this.cancellable?.cancel ();

GLib.Cancellable.cancel () already performs the already-cancelled check.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Removed the is_cancelled check, but fwiw, I'm hesitant on using optional chaining in vala due to #1002 and f5bd1c9 (couldn't reliably reproduce to report upstream)

@GeopJr
Copy link
Copy Markdown
Owner Author

GeopJr commented Mar 24, 2026

Thanks for the review!

Maybe the API should change again and return the inputstream instead of outing it, now that we don't need to return bool

@bugaevc
Copy link
Copy Markdown
Collaborator

bugaevc commented Mar 24, 2026

Yeah that makes sense too.

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.

Hang in Tuba.Network.get_parser_from_inputstream ()

2 participants