Return indexes of children which are disposed to collect
typedef CollectGarbage = void Function(List<int> garbages);