-
Notifications
You must be signed in to change notification settings - Fork 424
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
CancellationToken
Parameter to Methods Returning Task
and `Va…
…lueTask` (#1503) * Update .editorconfig * Update DrawingViewService.windows.cs * Add `CancellationToken` to IDrawingView, IAlert, AnimationBehavior * Update AvatarViewGesturesPage * Update SpeechToTextImplementation.windows.cs * Update SpeechToTextImplementation.windows.cs * Add CancellationToken * Update Unit Tests * Fix Failing Unit Tests * Remove Duplicative `ThrowIfCancellationRequested()` * Remove Duplicate `ThrowIfCancellationRequested()` * Add Timeout to `async Task` Unit Tests * Fix Unit Test Timeouts * Update `AnimateCommand` (`ICommand` -> `Command<CancellationToken> `) * `dotnet format` * Fix typo * Fix compiler bug * Update DrawingViewService.tizen.cs * Fix Unit Test Timeout * Fix BaseTest Inheritance * Refactor using TaskCompletionSource * Add CancellationToken * Increase `TestDuration.Short` * Increase to TestDuration.Long * Increase to TestDuration.Medium * Revert to `ICommand ForceValidateCommand` * Update ValidationBehavior.shared.cs * Update `void SeekTo(TimeSpan)` -> `Task SeekTo(TimeSpan, CancellationToken)` * Implement `IDisposable` pattern * Update `PlatformSeek()` * Promote PlatformSeek to `Task` * Fix Floating Point Comparison Bug * Update Windows + Tizen MediaElement * Update MauiMediaElement.windows.cs * Refactor + Optimize Code * Add CancellationToken Unit Tests for `Alerts`, `Animations` and `Behaviors` * Add CancellationToken Unit Tests for Converters * Ad Unit Tests for Extensions * Add Unit Tests for Layouts * Add CancellationToken for PopupService * Add Views CancellationToken Unit Tests * Add Default Value to CancellationToken Parameter on Public APIs * Update CONTRIBUTING.md * `dotnet format` * `dotnet format` * Update src/CommunityToolkit.Maui/Behaviors/AnimationBehavior.shared.cs * Update src/CommunityToolkit.Maui/Behaviors/AnimationBehavior.shared.cs
- Loading branch information
1 parent
bd75310
commit 1fce082
Showing
117 changed files
with
2,077 additions
and
735 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
samples/CommunityToolkit.Maui.Sample/Pages/Views/LazyView/MyLazyView.cs
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
samples/CommunityToolkit.Maui.Sample/Pages/Views/LazyView/MyViewLazyView.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using CommunityToolkit.Maui.Views; | ||
|
||
namespace CommunityToolkit.Maui.Sample.Pages.Views.LazyView; | ||
|
||
class MyViewLazyView : LazyView<MyView> | ||
{ | ||
public override async ValueTask LoadViewAsync(CancellationToken token) | ||
{ | ||
await base.LoadViewAsync(token); | ||
} | ||
} |
Oops, something went wrong.