Skip to content

Instantly share code, notes, and snippets.

@caleb-vear
Created October 9, 2012 01:19
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save caleb-vear/3856008 to your computer and use it in GitHub Desktop.
Save caleb-vear/3856008 to your computer and use it in GitHub Desktop.
Continue After implementation
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