@@ -189,7 +189,7 @@ public Subscription call(final Observer<List<T>> observer) {
189
189
* the {@link Func1} object representing the specified buffer operation.
190
190
*/
191
191
public static <T > Func1 <Observer <List <T >>, Subscription > buffer (Observable <T > source , long timespan , TimeUnit unit ) {
192
- return buffer (source , timespan , unit , Schedulers .newThread ());
192
+ return buffer (source , timespan , unit , Schedulers .threadPoolForComputation ());
193
193
}
194
194
195
195
/**
@@ -247,7 +247,7 @@ public Subscription call(final Observer<List<T>> observer) {
247
247
* the {@link Func1} object representing the specified buffer operation.
248
248
*/
249
249
public static <T > Func1 <Observer <List <T >>, Subscription > buffer (Observable <T > source , long timespan , TimeUnit unit , int count ) {
250
- return buffer (source , timespan , unit , count , Schedulers .newThread ());
250
+ return buffer (source , timespan , unit , count , Schedulers .threadPoolForComputation ());
251
251
}
252
252
253
253
/**
@@ -308,7 +308,7 @@ public Subscription call(final Observer<List<T>> observer) {
308
308
* the {@link Func1} object representing the specified buffer operation.
309
309
*/
310
310
public static <T > Func1 <Observer <List <T >>, Subscription > buffer (Observable <T > source , long timespan , long timeshift , TimeUnit unit ) {
311
- return buffer (source , timespan , timeshift , unit , Schedulers .newThread ());
311
+ return buffer (source , timespan , timeshift , unit , Schedulers .threadPoolForComputation ());
312
312
}
313
313
314
314
/**
@@ -370,7 +370,6 @@ public void onError(Exception e) {
370
370
creator .stop ();
371
371
buffers .emitAllBuffers ();
372
372
observer .onError (e );
373
- e .printStackTrace ();
374
373
}
375
374
376
375
@ Override
0 commit comments