Skip to content

Commit

Permalink
Removed await for better loading experience
Browse files Browse the repository at this point in the history
  • Loading branch information
michielpost committed May 15, 2024
1 parent be06581 commit 9509002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aoWebWallet/Pages/WalletDetail.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private void BindingContext_PropertyChanged(object? sender, System.ComponentMode

private async void TokenList_CollectionChanged(object? sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)

Check warning on line 36 in src/aoWebWallet/Pages/WalletDetail.razor.cs

View workflow job for this annotation

GitHub Actions / build

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

Check warning on line 36 in src/aoWebWallet/Pages/WalletDetail.razor.cs

View workflow job for this annotation

GitHub Actions / build

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
{
await BindingContext.TokenAddedRefresh();
BindingContext.TokenAddedRefresh();

Check warning on line 38 in src/aoWebWallet/Pages/WalletDetail.razor.cs

View workflow job for this annotation

GitHub Actions / build

Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call.

Check warning on line 38 in src/aoWebWallet/Pages/WalletDetail.razor.cs

View workflow job for this annotation

GitHub Actions / build

Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call.
}

protected override async Task OnParametersSetAsync()
Expand Down

0 comments on commit 9509002

Please sign in to comment.