We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be great to work with the object edit awaiting it instead of using events. Just like in the dialogs.
Example:
await myObject.EditAsync(); Console.WriteLine("Finished editing");
The text was updated successfully, but these errors were encountered:
Great idea, I'll look into it.
Sorry, something went wrong.
An temporary work around, you can use TaskCompletitionSource<TResult> in events to handle that.
TaskCompletitionSource<TResult>
var tcs = new TaskCompletitionSource(); SomeEventHandler handler = null; handler = (sender, args) => { //do stuff obj.SomeEvent -= handler; tcs.TrySetResult(); // notify to complete task. }; obj.SomeEvent += handler; await tcs.Task;
No branches or pull requests
It would be great to work with the object edit awaiting it instead of using events. Just like in the dialogs.
Example:
The text was updated successfully, but these errors were encountered: