|
@@ -904,20 +904,20 @@ namespace System.Reactive.Linq
|
|
return () =>
|
|
return () =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<TResult>();
|
|
var subject = new AsyncSubject<TResult>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((function, subject), state =>
|
|
{
|
|
{
|
|
var result = default(TResult);
|
|
var result = default(TResult);
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- result = function();
|
|
|
|
|
|
+ result = state.function();
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(result);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(result);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -933,20 +933,20 @@ namespace System.Reactive.Linq
|
|
return (first) =>
|
|
return (first) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<TResult>();
|
|
var subject = new AsyncSubject<TResult>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((function, subject, first), state =>
|
|
{
|
|
{
|
|
var result = default(TResult);
|
|
var result = default(TResult);
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- result = function(first);
|
|
|
|
|
|
+ result = state.function(state.first);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(result);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(result);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -962,20 +962,20 @@ namespace System.Reactive.Linq
|
|
return (first, second) =>
|
|
return (first, second) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<TResult>();
|
|
var subject = new AsyncSubject<TResult>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, function, first, second), state =>
|
|
{
|
|
{
|
|
var result = default(TResult);
|
|
var result = default(TResult);
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- result = function(first, second);
|
|
|
|
|
|
+ result = state.function(state.first, state.second);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(result);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(result);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -991,20 +991,20 @@ namespace System.Reactive.Linq
|
|
return (first, second, third) =>
|
|
return (first, second, third) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<TResult>();
|
|
var subject = new AsyncSubject<TResult>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, function, first, second, third), state =>
|
|
{
|
|
{
|
|
var result = default(TResult);
|
|
var result = default(TResult);
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- result = function(first, second, third);
|
|
|
|
|
|
+ result = state.function(state.first, state.second, state.third);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(result);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(result);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1020,20 +1020,20 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth) =>
|
|
return (first, second, third, fourth) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<TResult>();
|
|
var subject = new AsyncSubject<TResult>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, function, first, second, third, fourth), state =>
|
|
{
|
|
{
|
|
var result = default(TResult);
|
|
var result = default(TResult);
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- result = function(first, second, third, fourth);
|
|
|
|
|
|
+ result = state.function(state.first, state.second, state.third, state.fourth);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(result);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(result);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1049,20 +1049,20 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth) =>
|
|
return (first, second, third, fourth, fifth) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<TResult>();
|
|
var subject = new AsyncSubject<TResult>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, function, first, second, third, fourth, fifth), state =>
|
|
{
|
|
{
|
|
var result = default(TResult);
|
|
var result = default(TResult);
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- result = function(first, second, third, fourth, fifth);
|
|
|
|
|
|
+ result = state.function(state.first, state.second, state.third, state.fourth, state.fifth);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(result);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(result);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1078,20 +1078,20 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth, sixth) =>
|
|
return (first, second, third, fourth, fifth, sixth) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<TResult>();
|
|
var subject = new AsyncSubject<TResult>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, function, first, second, third, fourth, fifth, sixth), state =>
|
|
{
|
|
{
|
|
var result = default(TResult);
|
|
var result = default(TResult);
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- result = function(first, second, third, fourth, fifth, sixth);
|
|
|
|
|
|
+ result = state.function(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(result);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(result);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1107,20 +1107,20 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth, sixth, seventh) =>
|
|
return (first, second, third, fourth, fifth, sixth, seventh) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<TResult>();
|
|
var subject = new AsyncSubject<TResult>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, function, first, second, third, fourth, fifth, sixth, seventh), state =>
|
|
{
|
|
{
|
|
var result = default(TResult);
|
|
var result = default(TResult);
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- result = function(first, second, third, fourth, fifth, sixth, seventh);
|
|
|
|
|
|
+ result = state.function(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth, state.seventh);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(result);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(result);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1136,20 +1136,20 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eight) =>
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eight) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<TResult>();
|
|
var subject = new AsyncSubject<TResult>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, function, first, second, third, fourth, fifth, sixth, seventh, eight), state =>
|
|
{
|
|
{
|
|
var result = default(TResult);
|
|
var result = default(TResult);
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- result = function(first, second, third, fourth, fifth, sixth, seventh, eight);
|
|
|
|
|
|
+ result = state.function(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth, state.seventh, state.eight);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(result);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(result);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1165,20 +1165,20 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eight, ninth) =>
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eight, ninth) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<TResult>();
|
|
var subject = new AsyncSubject<TResult>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, function, first, second, third, fourth, fifth, sixth, seventh, eight, ninth), state =>
|
|
{
|
|
{
|
|
var result = default(TResult);
|
|
var result = default(TResult);
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- result = function(first, second, third, fourth, fifth, sixth, seventh, eight, ninth);
|
|
|
|
|
|
+ result = state.function(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth, state.seventh, state.eight, state.ninth);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(result);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(result);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1194,20 +1194,20 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth) =>
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<TResult>();
|
|
var subject = new AsyncSubject<TResult>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, function, first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth), state =>
|
|
{
|
|
{
|
|
var result = default(TResult);
|
|
var result = default(TResult);
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- result = function(first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth);
|
|
|
|
|
|
+ result = state.function(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth, state.seventh, state.eight, state.ninth, state.tenth);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(result);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(result);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1223,20 +1223,20 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh) =>
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<TResult>();
|
|
var subject = new AsyncSubject<TResult>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, function, first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh), state =>
|
|
{
|
|
{
|
|
var result = default(TResult);
|
|
var result = default(TResult);
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- result = function(first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh);
|
|
|
|
|
|
+ result = state.function(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth, state.seventh, state.eight, state.ninth, state.tenth, state.eleventh);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(result);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(result);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1252,20 +1252,20 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh, twelfth) =>
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh, twelfth) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<TResult>();
|
|
var subject = new AsyncSubject<TResult>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, function, first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh, twelfth), state =>
|
|
{
|
|
{
|
|
var result = default(TResult);
|
|
var result = default(TResult);
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- result = function(first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh, twelfth);
|
|
|
|
|
|
+ result = state.function(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth, state.seventh, state.eight, state.ninth, state.tenth, state.eleventh, state.twelfth);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(result);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(result);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1281,20 +1281,20 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh, twelfth, thirteenth) =>
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh, twelfth, thirteenth) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<TResult>();
|
|
var subject = new AsyncSubject<TResult>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, function, first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh, twelfth, thirteenth), state =>
|
|
{
|
|
{
|
|
var result = default(TResult);
|
|
var result = default(TResult);
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- result = function(first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh, twelfth, thirteenth);
|
|
|
|
|
|
+ result = state.function(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth, state.seventh, state.eight, state.ninth, state.tenth, state.eleventh, state.twelfth, state.thirteenth);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(result);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(result);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1310,20 +1310,20 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth) =>
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<TResult>();
|
|
var subject = new AsyncSubject<TResult>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, function, first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth), state =>
|
|
{
|
|
{
|
|
var result = default(TResult);
|
|
var result = default(TResult);
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- result = function(first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth);
|
|
|
|
|
|
+ result = state.function(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth, state.seventh, state.eight, state.ninth, state.tenth, state.eleventh, state.twelfth, state.thirteenth, state.fourteenth);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(result);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(result);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1339,20 +1339,20 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth, fifteenth) =>
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth, fifteenth) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<TResult>();
|
|
var subject = new AsyncSubject<TResult>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, function, first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth, fifteenth), state =>
|
|
{
|
|
{
|
|
var result = default(TResult);
|
|
var result = default(TResult);
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- result = function(first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth, fifteenth);
|
|
|
|
|
|
+ result = state.function(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth, state.seventh, state.eight, state.ninth, state.tenth, state.eleventh, state.twelfth, state.thirteenth, state.fourteenth, state.fifteenth);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(result);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(result);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1368,20 +1368,20 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth, fifteenth, sixteenth) =>
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth, fifteenth, sixteenth) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<TResult>();
|
|
var subject = new AsyncSubject<TResult>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, function, first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth, fifteenth, sixteenth), state =>
|
|
{
|
|
{
|
|
var result = default(TResult);
|
|
var result = default(TResult);
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- result = function(first, second, third, fourth, fifth, sixth, seventh, eight, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth, fifteenth, sixteenth);
|
|
|
|
|
|
+ result = state.function(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth, state.seventh, state.eight, state.ninth, state.tenth, state.eleventh, state.twelfth, state.thirteenth, state.fourteenth, state.fifteenth, state.sixteenth);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(result);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(result);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1401,19 +1401,19 @@ namespace System.Reactive.Linq
|
|
return () =>
|
|
return () =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<Unit>();
|
|
var subject = new AsyncSubject<Unit>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, action), state =>
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- action();
|
|
|
|
|
|
+ state.action();
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(Unit.Default);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(Unit.Default);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
|
|
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
@@ -1430,19 +1430,19 @@ namespace System.Reactive.Linq
|
|
return (first) =>
|
|
return (first) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<Unit>();
|
|
var subject = new AsyncSubject<Unit>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, action, first), state =>
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- action(first);
|
|
|
|
|
|
+ state.action(state.first);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(Unit.Default);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(Unit.Default);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1458,19 +1458,19 @@ namespace System.Reactive.Linq
|
|
return (first, second) =>
|
|
return (first, second) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<Unit>();
|
|
var subject = new AsyncSubject<Unit>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, action, first, second), state =>
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- action(first, second);
|
|
|
|
|
|
+ state.action(state.first, state.second);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(Unit.Default);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(Unit.Default);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1486,19 +1486,19 @@ namespace System.Reactive.Linq
|
|
return (first, second, third) =>
|
|
return (first, second, third) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<Unit>();
|
|
var subject = new AsyncSubject<Unit>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, action, first, second, third), state =>
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- action(first, second, third);
|
|
|
|
|
|
+ state.action(state.first, state.second, state.third);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(Unit.Default);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(Unit.Default);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1514,19 +1514,19 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth) =>
|
|
return (first, second, third, fourth) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<Unit>();
|
|
var subject = new AsyncSubject<Unit>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, action, first, second, third, fourth), state =>
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- action(first, second, third, fourth);
|
|
|
|
|
|
+ state.action(state.first, state.second, state.third, state.fourth);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(Unit.Default);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(Unit.Default);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1542,19 +1542,19 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth) =>
|
|
return (first, second, third, fourth, fifth) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<Unit>();
|
|
var subject = new AsyncSubject<Unit>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, action, first, second, third, fourth, fifth), state =>
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- action(first, second, third, fourth, fifth);
|
|
|
|
|
|
+ state.action(state.first, state.second, state.third, state.fourth, state.fifth);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(Unit.Default);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(Unit.Default);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1570,19 +1570,19 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth, sixth) =>
|
|
return (first, second, third, fourth, fifth, sixth) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<Unit>();
|
|
var subject = new AsyncSubject<Unit>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, action, first, second, third, fourth, fifth, sixth), state =>
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- action(first, second, third, fourth, fifth, sixth);
|
|
|
|
|
|
+ state.action(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(Unit.Default);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(Unit.Default);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1598,19 +1598,19 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth, sixth, seventh) =>
|
|
return (first, second, third, fourth, fifth, sixth, seventh) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<Unit>();
|
|
var subject = new AsyncSubject<Unit>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, action, first, second, third, fourth, fifth, sixth, seventh), state =>
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- action(first, second, third, fourth, fifth, sixth, seventh);
|
|
|
|
|
|
+ state.action(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth, state.seventh);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(Unit.Default);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(Unit.Default);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1623,22 +1623,22 @@ namespace System.Reactive.Linq
|
|
|
|
|
|
public virtual Func<T1, T2, T3, T4, T5, T6, T7, T8, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8>(Action<T1, T2, T3, T4, T5, T6, T7, T8> action, IScheduler scheduler)
|
|
public virtual Func<T1, T2, T3, T4, T5, T6, T7, T8, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8>(Action<T1, T2, T3, T4, T5, T6, T7, T8> action, IScheduler scheduler)
|
|
{
|
|
{
|
|
- return (first, second, third, fourth, fifth, sixth, seventh, eight) =>
|
|
|
|
|
|
+ return (first, second, third, fourth, fifth, sixth, seventh, eighth) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<Unit>();
|
|
var subject = new AsyncSubject<Unit>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, action, first, second, third, fourth, fifth, sixth, seventh, eighth), state =>
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- action(first, second, third, fourth, fifth, sixth, seventh, eight);
|
|
|
|
|
|
+ state.action(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth, state.seventh, state.eighth);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(Unit.Default);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(Unit.Default);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1654,19 +1654,19 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eighth, ninth) =>
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eighth, ninth) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<Unit>();
|
|
var subject = new AsyncSubject<Unit>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, action, first, second, third, fourth, fifth, sixth, seventh, eighth, ninth), state =>
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- action(first, second, third, fourth, fifth, sixth, seventh, eighth, ninth);
|
|
|
|
|
|
+ state.action(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth, state.seventh, state.eighth, state.ninth);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(Unit.Default);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(Unit.Default);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1682,19 +1682,19 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth) =>
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<Unit>();
|
|
var subject = new AsyncSubject<Unit>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, action, first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth), state =>
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- action(first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth);
|
|
|
|
|
|
+ state.action(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth, state.seventh, state.eighth, state.ninth, state.tenth);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(Unit.Default);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(Unit.Default);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1710,19 +1710,19 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh) =>
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<Unit>();
|
|
var subject = new AsyncSubject<Unit>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, action, first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh), state =>
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- action(first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh);
|
|
|
|
|
|
+ state.action(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth, state.seventh, state.eighth, state.ninth, state.tenth, state.eleventh);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(Unit.Default);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(Unit.Default);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1738,19 +1738,19 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth) =>
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<Unit>();
|
|
var subject = new AsyncSubject<Unit>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, action, first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth), state =>
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- action(first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth);
|
|
|
|
|
|
+ state.action(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth, state.seventh, state.eighth, state.ninth, state.tenth, state.eleventh, state.twelfth);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(Unit.Default);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(Unit.Default);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1766,19 +1766,19 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, thirteenth) =>
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, thirteenth) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<Unit>();
|
|
var subject = new AsyncSubject<Unit>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, action, first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, thirteenth), state =>
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- action(first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, thirteenth);
|
|
|
|
|
|
+ state.action(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth, state.seventh, state.eighth, state.ninth, state.tenth, state.eleventh, state.twelfth, state.thirteenth);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(Unit.Default);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(Unit.Default);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1794,19 +1794,19 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth) =>
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<Unit>();
|
|
var subject = new AsyncSubject<Unit>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, action, first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth), state =>
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- action(first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth);
|
|
|
|
|
|
+ state.action(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth, state.seventh, state.eighth, state.ninth, state.tenth, state.eleventh, state.twelfth, state.thirteenth, state.fourteenth);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(Unit.Default);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(Unit.Default);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1822,19 +1822,19 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth, fifteenth) =>
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth, fifteenth) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<Unit>();
|
|
var subject = new AsyncSubject<Unit>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, action, first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth, fifteenth), state =>
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- action(first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth, fifteenth);
|
|
|
|
|
|
+ state.action(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth, state.seventh, state.eighth, state.ninth, state.tenth, state.eleventh, state.twelfth, state.thirteenth, state.fourteenth, state.fifteenth);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(Unit.Default);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(Unit.Default);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|
|
@@ -1850,19 +1850,19 @@ namespace System.Reactive.Linq
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth, fifteenth, sixteenth) =>
|
|
return (first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth, fifteenth, sixteenth) =>
|
|
{
|
|
{
|
|
var subject = new AsyncSubject<Unit>();
|
|
var subject = new AsyncSubject<Unit>();
|
|
- scheduler.Schedule(() =>
|
|
|
|
|
|
+ scheduler.ScheduleAction((subject, action, first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth, fifteenth, sixteenth), state =>
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- action(first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth, fifteenth, sixteenth);
|
|
|
|
|
|
+ state.action(state.first, state.second, state.third, state.fourth, state.fifth, state.sixth, state.seventh, state.eighth, state.ninth, state.tenth, state.eleventh, state.twelfth, state.thirteenth, state.fourteenth, state.fifteenth, state.sixteenth);
|
|
}
|
|
}
|
|
catch (Exception exception)
|
|
catch (Exception exception)
|
|
{
|
|
{
|
|
- subject.OnError(exception);
|
|
|
|
|
|
+ state.subject.OnError(exception);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- subject.OnNext(Unit.Default);
|
|
|
|
- subject.OnCompleted();
|
|
|
|
|
|
+ state.subject.OnNext(Unit.Default);
|
|
|
|
+ state.subject.OnCompleted();
|
|
});
|
|
});
|
|
return subject.AsObservable();
|
|
return subject.AsObservable();
|
|
};
|
|
};
|