SCORU/Node/Store: gc function can also take an iterator in argument
Context
This MR allows the gc
function to take an iterator (over the store) as argument. The GC stops (and discards all other elements) when the next
function of the iterator returns None
. This allows to not compute a priori the keys to retain in the GC.
Depends on !10050 (merged).