This PR removes Effect in preference for Consumer, but leaves Thunk around. Thunk actually does something: it caches its result. It is also not a functional interface, so there's no conflict; everything which might have accepted a Thunk instead accepts a Supplier.
Nothing in this library still uses Thunk, but since it seems like a useful thing to exist, I haven't deleted it.
Fixes #34, mostly.
This PR removes
Effect
in preference forConsumer
, but leavesThunk
around.Thunk
actually does something: it caches its result. It is also not a functional interface, so there's no conflict; everything which might have accepted aThunk
instead accepts aSupplier
.Nothing in this library still uses
Thunk
, but since it seems like a useful thing to exist, I haven't deleted it.