3434 ///
3535 /// See [`Iterator::count()`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.count)
3636 fn count ( mut self , pool : & TaskPool ) -> usize {
37- pool. scope ( |s| {
37+ pool. scope ( None , |s| {
3838 while let Some ( batch) = self . next_batch ( ) {
3939 s. spawn ( async move { batch. count ( ) } ) ;
4040 }
@@ -105,7 +105,7 @@ where
105105 where
106106 F : FnMut ( BatchIter :: Item ) + Send + Clone + Sync ,
107107 {
108- pool. scope ( |s| {
108+ pool. scope ( None , |s| {
109109 while let Some ( batch) = self . next_batch ( ) {
110110 let newf = f. clone ( ) ;
111111 s. spawn ( async move {
@@ -195,7 +195,7 @@ where
195195 C : std:: iter:: FromIterator < BatchIter :: Item > ,
196196 BatchIter :: Item : Send + ' static ,
197197 {
198- pool. scope ( |s| {
198+ pool. scope ( None , |s| {
199199 while let Some ( batch) = self . next_batch ( ) {
200200 s. spawn ( async move { batch. collect :: < Vec < _ > > ( ) } ) ;
201201 }
@@ -216,7 +216,7 @@ where
216216 BatchIter :: Item : Send + ' static ,
217217 {
218218 let ( mut a, mut b) = <( C , C ) >:: default ( ) ;
219- pool. scope ( |s| {
219+ pool. scope ( None , |s| {
220220 while let Some ( batch) = self . next_batch ( ) {
221221 let newf = f. clone ( ) ;
222222 s. spawn ( async move { batch. partition :: < Vec < _ > , F > ( newf) } ) ;
@@ -242,7 +242,7 @@ where
242242 F : FnMut ( C , BatchIter :: Item ) -> C + Send + Sync + Clone ,
243243 C : Clone + Send + Sync + ' static ,
244244 {
245- pool. scope ( |s| {
245+ pool. scope ( None , |s| {
246246 while let Some ( batch) = self . next_batch ( ) {
247247 let newf = f. clone ( ) ;
248248 let newi = init. clone ( ) ;
@@ -260,7 +260,7 @@ where
260260 where
261261 F : FnMut ( BatchIter :: Item ) -> bool + Send + Sync + Clone ,
262262 {
263- pool. scope ( |s| {
263+ pool. scope ( None , |s| {
264264 while let Some ( mut batch) = self . next_batch ( ) {
265265 let newf = f. clone ( ) ;
266266 s. spawn ( async move { batch. all ( newf) } ) ;
@@ -279,7 +279,7 @@ where
279279 where
280280 F : FnMut ( BatchIter :: Item ) -> bool + Send + Sync + Clone ,
281281 {
282- pool. scope ( |s| {
282+ pool. scope ( None , |s| {
283283 while let Some ( mut batch) = self . next_batch ( ) {
284284 let newf = f. clone ( ) ;
285285 s. spawn ( async move { batch. any ( newf) } ) ;
@@ -299,7 +299,7 @@ where
299299 where
300300 F : FnMut ( BatchIter :: Item ) -> bool + Send + Sync + Clone ,
301301 {
302- let poses = pool. scope ( |s| {
302+ let poses = pool. scope ( None , |s| {
303303 while let Some ( batch) = self . next_batch ( ) {
304304 let mut newf = f. clone ( ) ;
305305 s. spawn ( async move {
@@ -332,7 +332,7 @@ where
332332 where
333333 BatchIter :: Item : Ord + Send + ' static ,
334334 {
335- pool. scope ( |s| {
335+ pool. scope ( None , |s| {
336336 while let Some ( batch) = self . next_batch ( ) {
337337 s. spawn ( async move { batch. max ( ) } ) ;
338338 }
@@ -349,7 +349,7 @@ where
349349 where
350350 BatchIter :: Item : Ord + Send + ' static ,
351351 {
352- pool. scope ( |s| {
352+ pool. scope ( None , |s| {
353353 while let Some ( batch) = self . next_batch ( ) {
354354 s. spawn ( async move { batch. min ( ) } ) ;
355355 }
@@ -368,7 +368,7 @@ where
368368 F : FnMut ( & BatchIter :: Item ) -> R + Send + Sync + Clone ,
369369 BatchIter :: Item : Send + ' static ,
370370 {
371- pool. scope ( |s| {
371+ pool. scope ( None , |s| {
372372 while let Some ( batch) = self . next_batch ( ) {
373373 let newf = f. clone ( ) ;
374374 s. spawn ( async move { batch. max_by_key ( newf) } ) ;
@@ -388,7 +388,7 @@ where
388388 F : FnMut ( & BatchIter :: Item , & BatchIter :: Item ) -> std:: cmp:: Ordering + Send + Sync + Clone ,
389389 BatchIter :: Item : Send + ' static ,
390390 {
391- pool. scope ( |s| {
391+ pool. scope ( None , |s| {
392392 while let Some ( batch) = self . next_batch ( ) {
393393 let newf = f. clone ( ) ;
394394 s. spawn ( async move { batch. max_by ( newf) } ) ;
@@ -408,7 +408,7 @@ where
408408 F : FnMut ( & BatchIter :: Item ) -> R + Send + Sync + Clone ,
409409 BatchIter :: Item : Send + ' static ,
410410 {
411- pool. scope ( |s| {
411+ pool. scope ( None , |s| {
412412 while let Some ( batch) = self . next_batch ( ) {
413413 let newf = f. clone ( ) ;
414414 s. spawn ( async move { batch. min_by_key ( newf) } ) ;
@@ -428,7 +428,7 @@ where
428428 F : FnMut ( & BatchIter :: Item , & BatchIter :: Item ) -> std:: cmp:: Ordering + Send + Sync + Clone ,
429429 BatchIter :: Item : Send + ' static ,
430430 {
431- pool. scope ( |s| {
431+ pool. scope ( None , |s| {
432432 while let Some ( batch) = self . next_batch ( ) {
433433 let newf = f. clone ( ) ;
434434 s. spawn ( async move { batch. min_by ( newf) } ) ;
@@ -482,7 +482,7 @@ where
482482 S : std:: iter:: Sum < BatchIter :: Item > + Send + ' static ,
483483 R : std:: iter:: Sum < S > ,
484484 {
485- pool. scope ( |s| {
485+ pool. scope ( None , |s| {
486486 while let Some ( batch) = self . next_batch ( ) {
487487 s. spawn ( async move { batch. sum ( ) } ) ;
488488 }
@@ -499,7 +499,7 @@ where
499499 S : std:: iter:: Product < BatchIter :: Item > + Send + ' static ,
500500 R : std:: iter:: Product < S > ,
501501 {
502- pool. scope ( |s| {
502+ pool. scope ( None , |s| {
503503 while let Some ( batch) = self . next_batch ( ) {
504504 s. spawn ( async move { batch. product ( ) } ) ;
505505 }
0 commit comments