Skip to content

[HybridWebView] Add support for async .NET methods #25967

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

Merged
merged 4 commits into from
Jan 23, 2025

Conversation

mattleibow
Copy link
Member

@mattleibow mattleibow commented Nov 19, 2024

Description of Change

This PR makes the call from JS into .NET be able to support async methods (return Task or Task<T>)

This PR has a fair bit of things moving around because of the async and the fact that I wanted to make the code flow the same on all the platforms. The code was getting a bit nested, so I broke things out into methods.

Issues Fixed

Fixes #25968

@mattleibow mattleibow requested a review from a team as a code owner November 19, 2024 21:56
@mattleibow mattleibow requested review from rmarinho, jsuarezruiz, Eilon and tj-devel709 and removed request for rmarinho and jsuarezruiz November 19, 2024 21:56
@jfversluis jfversluis added the area-architecture Issues with code structure, SDK structure, implementation details label Dec 11, 2024
@HelloooJoe
Copy link

Any ETA when with this be available in .NET MAUI? Either in preview or other?

@mattleibow mattleibow self-assigned this Jan 13, 2025
@mattleibow mattleibow added this to the .NET 9 SR4 milestone Jan 13, 2025
@mattleibow mattleibow added area-controls-hybridwebview HybridWebView control and removed area-architecture Issues with code structure, SDK structure, implementation details labels Jan 13, 2025
@mattleibow mattleibow marked this pull request as draft January 13, 2025 15:18
@mattleibow mattleibow force-pushed the dev/hybridwebview-async-support branch 2 times, most recently from 714b204 to 68028a8 Compare January 13, 2025 19:26
@mattleibow mattleibow requested a review from Eilon January 13, 2025 19:26
@mattleibow mattleibow marked this pull request as ready for review January 13, 2025 19:27
@mattleibow mattleibow removed their assignment Jan 15, 2025
@mattleibow mattleibow changed the title Add support for async .NET methods [HybridWebView] Add support for async .NET methods Jan 15, 2025
@mattleibow mattleibow force-pushed the dev/hybridwebview-async-support branch from 68028a8 to a5ae2c2 Compare January 15, 2025 13:58
@mattleibow mattleibow force-pushed the dev/hybridwebview-async-support branch from a5ae2c2 to 56070a8 Compare January 17, 2025 20:58
@mattleibow
Copy link
Member Author

Test failures unrelated to this PR

@mattleibow mattleibow merged commit 6166a57 into main Jan 23, 2025
102 of 104 checks passed
@mattleibow mattleibow deleted the dev/hybridwebview-async-support branch January 23, 2025 16:46
@github-actions github-actions bot locked and limited conversation to collaborators Feb 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-hybridwebview HybridWebView control
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Calling a .NET method that returns Task will throw
5 participants