mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-06-02 23:59:50 -04:00
Use ValueTask instead of Task where possible
This commit is contained in:
parent
ac64d9943a
commit
ba66b52fa4
16 changed files with 52 additions and 51 deletions
|
@ -17,7 +17,7 @@ namespace DiscordChatExporter.Gui.ViewModels.Framework
|
|||
_viewManager = viewManager;
|
||||
}
|
||||
|
||||
public async Task<T> ShowDialogAsync<T>(DialogScreen<T> dialogScreen)
|
||||
public async ValueTask<T> ShowDialogAsync<T>(DialogScreen<T> dialogScreen)
|
||||
{
|
||||
// Get the view that renders this viewmodel
|
||||
var view = _viewManager.CreateAndBindViewForModelIfNecessary(dialogScreen);
|
||||
|
|
|
@ -70,7 +70,7 @@ namespace DiscordChatExporter.Gui.ViewModels
|
|||
(sender, args) => IsProgressIndeterminate = ProgressManager.IsActive && ProgressManager.Progress.IsEither(0, 1));
|
||||
}
|
||||
|
||||
private async Task HandleAutoUpdateAsync()
|
||||
private async ValueTask HandleAutoUpdateAsync()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue