pub fn get_pieces_individually<'a, PieceIndices, Func, Fut>(
get_piece: Func,
piece_indices: PieceIndices,
) -> Result<Box<dyn Stream<Item = (PieceIndex, Result<Option<Piece>>)> + Send + Unpin + 'a>>
Expand description
A default implementation which gets each piece individually, using the get_piece
async
function.
This is mainly used for testing, most production implementations can fetch multiple pieces more efficiently.