public
Last active

Continue After implementation

  • Download Gist
ContinueAfter.cs
C#
1 2 3 4 5 6 7
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());
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.