Slackbot
09/21/2023, 5:53 PMVampire
09/21/2023, 6:00 PMall is eager and causes all elements to be realized, thus for example breaking task configuration avoidance, while configureEach works lazily.
Regarding order, I don't think there is something guaranteed and you should probably not depend on it, even if you know how it currently is.Kelvin Chung
09/21/2023, 6:04 PMTaskContainer, I interpret configureEach() to mean that the this object is still being "initialized" (ie. created, but you are still setting its properties), whereas I take all() to mean that the this object is "fully created" due to its eagerness.
Maybe a flawed viewpoint, but probably makes sense in context.Vampire
09/21/2023, 6:36 PMall is simply the old and eager API, configureEach the new and lazy API. Other than that, they are equivalent.Vampire
09/21/2023, 6:39 PMall causes the realization to happen immediately and for all elements, while configureEach is only executed for elements that are created anyway due to some other reason.Kelvin Chung
09/21/2023, 8:05 PMall() and configureEach() planted on containers that are nominally empty so it should make little difference in practice, but it's the principle of it all if I want all my writes done before my reads, and if all() would be "functionally deprecated" in the future.