This repository was archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 458
Fix DisplaySnackBarAsync Task never completes if another SnackBar appears, and completes before SnackBar action #1357
Merged
VladislavAntonyuk
merged 31 commits into
xamarin:main
from
maxkoshevoi:1341-infinite-toast
Nov 25, 2021
Merged
Fix DisplaySnackBarAsync Task never completes if another SnackBar appears, and completes before SnackBar action #1357
VladislavAntonyuk
merged 31 commits into
xamarin:main
from
maxkoshevoi:1341-infinite-toast
Nov 25, 2021
Conversation
This file contains hidden or 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
VladislavAntonyuk
previously approved these changes
Jun 2, 2021
@maxkoshevoi are you able to create tests for it inside our sample in the TestCases? |
@pictos, @jfversluis Added tests |
@jfversluis @pictos Could you take another look at this, please? |
@jfversluis @pictos @VladislavAntonyuk |
samples/XCT.Sample/ViewModels/TestCases/TestCasesGalleryViewModel.cs
Outdated
Show resolved
Hide resolved
src/CommunityToolkit/Xamarin.CommunityToolkit/Views/Snackbar/SnackBar.gtk.cs
Outdated
Show resolved
Hide resolved
VladislavAntonyuk
previously approved these changes
Oct 21, 2021
@Dreamescaper if I had rights, I would merge this PR |
pictos
previously requested changes
Oct 22, 2021
src/CommunityToolkit/Xamarin.CommunityToolkit/Views/Snackbar/SnackBar.ios.macos.cs
Outdated
Show resolved
Hide resolved
@VladislavAntonyuk Go for it! It looks like it needs one more Review + Approve then you can merge it. Give it a quick double-check to make sure everything still looks good, approve it, then merge it in! |
Make SetResult and SetException internal
VladislavAntonyuk
approved these changes
Nov 25, 2021
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Change
false
if SnackBar was closed via anything but executing an action.Issue

There are 4 possible ways for SnackBar to be closed:
Current implementation handles only two (so task never completed for other two):

Bugs Fixed
API Changes
None
Behavioral Changes
DisplaySnackBarAsync
waits until SnackBar action completesDisplaySnackBarAsync
also catches them in SnackBar actionPR Checklist
approved