Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

fix InvalidCastException at ReactivePropertyExtensions.WaitUntilValueChangedAsync #474

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ public static Task<T> WaitUntilValueChangedAsync<T>(this IReadOnlyReactiveProper
}, ex => tcs.TrySetException(ex), () => tcs.TrySetCanceled());
}

cancellationToken.Register(Callback, Tuple.Create(tcs, disposable.Disposable), false);
cancellationToken.Register(Callback, Tuple.Create((ICancellableTaskCompletionSource) tcs, disposable.Disposable), false);

return tcs.Task;
}
Expand Down