gradle/gradle — comment on commit 4339041adcd60b5871485e744a8c10a1fdcc269d
File: subprojects/core/src/main/groovy/org/gradle/api/internal/project/Synchronizer.java line 40
By adammurdoch:

I think it's quite reasonable for us to have a type that represents an operation that returns a result. There are lots of places we would use that.

So, ThreadSafely should be renamed to something much more abstract, much like Action, Spec, Transformer, Factory and friends. It should go and live in o.g.api.internal with Factory, or o.g.api with Action and Transformer. I don't think there's any reason to make it public yet.

Another option is that you reuse Factory here, and ditch ThreadSafely.