-
-
Save hoangtranwork/11392506 to your computer and use it in GitHub Desktop.
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
public static IObservable<TRet> ContinueAfter<T, TRet>(this IObservable<T> observable, Func<IObservable<TRet>> selector) | |
{ | |
return observable | |
.Materialize() | |
.Where(n => n.Kind == NotificationKind.OnCompleted) | |
.SelectMany(_ => selector()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is a working solution