Support for async method calls in property setters

227 Views Asked by At

This question is related to the MVVM Toolkit provided in the Windows Community Toolkit.

I was wondering if there are any plans to support scenarios where an async method can be called and awaited in a property setter, similar to what's mentioned here from Stephen Cleary's Mvvm.Async library? How to call an async method from a property setter

Thanks!

1

There are 1 best solutions below

0
On

According to this comment, they have a NotifyTaskCompletion<TResult>, but it is being replaced by ObservableObject.SetAndNotifyOnCompletion in conjunction with TaskExtensions.ResultOrDefault.

I recommend asking further questions directly to the WCT team; Stack Overflow is more about programming questions and not questions regarding the future of a specific library.