Skip to content

fix(AsyncInfo): Remove incorrect NotImplemented attribute from AsyncInfo.Run<TResult> - #23726

Merged
MartinZikmund merged 1 commit into
unoplatform:masterfrom
w-ahmad:fix/asyncinfo-run-notimplemented-attribute
Jul 15, 2026
Merged

MartinZikmund merged 1 commit into
unoplatform:masterfrom
w-ahmad:fix/asyncinfo-run-notimplemented-attribute

Conversation

@w-ahmad

@w-ahmad w-ahmad commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #23725

PR Type: 🐞 Bugfix

What changed? 🚀

Removed the [Uno.NotImplemented] attribute from the following AsyncInfo.Run<TResult> overload.

public static IAsyncOperation<TResult> Run<TResult>(
    Func<CancellationToken, Task<TResult>> taskProvider)
    => AsyncOperation.FromTask(taskProvider);

This overload already has a working implementation using AsyncOperation.FromTask. Marking it as not implemented is therefore inaccurate and may cause unnecessary warnings or incorrect API documentation.

The attributes on the remaining Run overloads were left unchanged because those methods still throw NotImplementedException.

PR Checklist ✅

Copilot AI review requested due to automatic review settings July 10, 2026 21:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes incorrect API metadata in Uno.UWP by removing an erroneous [Uno.NotImplemented] attribute from the already-functional AsyncInfo.Run<TResult>(Func<CancellationToken, Task<TResult>>) overload, preventing misleading “not implemented” signaling for an implemented API.

Changes:

  • Removed [Uno.NotImplemented] from the AsyncInfo.Run<TResult>(Func<CancellationToken, Task<TResult>>) overload that delegates to AsyncOperation.FromTask.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MartinZikmund
MartinZikmund enabled auto-merge July 13, 2026 06:53
@MartinZikmund

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 222030 has failed on Uno.UI - CI.

auto-merge was automatically disabled July 13, 2026 21:56

Head branch was pushed to by a user without write access

@w-ahmad
w-ahmad force-pushed the fix/asyncinfo-run-notimplemented-attribute branch from cd41fc8 to d210c21 Compare July 13, 2026 21:56
@w-ahmad w-ahmad changed the title Remove incorrect NotImplemented attribute from AsyncInfo.Run<TResult> fix(AsyncInfo): Remove incorrect NotImplemented attribute from AsyncInfo.Run<TResult> Jul 13, 2026
@w-ahmad
w-ahmad requested a review from MartinZikmund July 14, 2026 10:09
@MartinZikmund

Copy link
Copy Markdown
Member

/azp run

@MartinZikmund
MartinZikmund enabled auto-merge July 14, 2026 10:17
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 222237 has failed on Uno.UI - CI.

@w-ahmad

w-ahmad commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

⚠️⚠️ The build 222237 has failed on Uno.UI - CI.

@MartinZikmund, is it something internal or due to proposed changes?

@MartinZikmund
MartinZikmund merged commit 0036d02 into unoplatform:master Jul 15, 2026
47 checks passed
@welcome

welcome Bot commented Jul 15, 2026

Copy link
Copy Markdown

🎉 Congratulations on getting your very first pull request merged into Uno Platform! This is a huge milestone — you are now officially part of the community of contributors helping shape the future of cross-platform .NET development, and your code will reach developers and apps all over the world. 🌍

We are genuinely grateful for the time and care you put into this contribution. Every PR — big or small — makes Uno Platform better for everyone, and we hope this is the first of many. We cannot wait to see what you build next! 🚀

As a small thank-you, we would love to send you some swag so you can wear your contributor status with pride. And if you have any feedback or ideas on how we can make contributing to Uno Platform even better, please open a feedback issue — we truly value your perspective.

giphy
Welcome to the family, and merci beaucoup! 👋❤️

@MartinZikmund

Copy link
Copy Markdown
Member

@w-ahmad was just a flaky test, merged now!

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.

Remove incorrect NotImplemented attribute from AsyncInfo.Run<TResult>

4 participants