Generic parameter of StructuredTaskScope

Attila Kelemen attila.kelemen85 at gmail.com
Sun May 14 11:01:40 UTC 2023


> >
> > But otherwise yes, it is a bit strange that ShutdownOnFailure denies
> > me the option when it only saves me two characters "<>", and if saving
> > character is the goal, then they could have factory methods (and these
> > two classes don't even have to be directly exposed, since they are
> > final anyway).
> These classes are exposed as they define the APIs for processing the
> outcome of the policies that they implement. It doesn't make sense to
> have them on the base class.

I suppose you are right, I was thinking of - for some reason -
aggregating a non constant amount of results, but I realized that can
be done anyway. Also, if we wanted a `getAllResults` of some sort (if
it would even be useful in practice), then that implementation would
probably do something else for you as well.


More information about the loom-dev mailing list