Example #1
0
        public static ICompletable DoAfterTerminate(this ICompletable source, Action onAfterTerminateCall)
        {
            return(Create(cs =>
            {
                LambdaCompletableSubscriber lcs = new LambdaCompletableSubscriber(
                    cs, d => { }, () => { }, e => { }, onAfterTerminateCall);

                source.Subscribe(lcs);
            }));
        }
Example #2
0
        public static ICompletable DoOnError(this ICompletable source, Action <Exception> onErrorCall)
        {
            return(Create(cs =>
            {
                LambdaCompletableSubscriber lcs = new LambdaCompletableSubscriber(
                    cs, d => { }, () => { }, onErrorCall, () => { });

                source.Subscribe(lcs);
            }));
        }