I am looking for a good name of an interface having a run
method like Runnable but returning a result.
Options I currently consider are:
Calculation -> too mathematically, and not everything returning a result is a calculation
Function -> Quite near to what I am looking but it is still too mathematically
Action -> Is a missfit due it does not necessary produce a result
Operation -> That would be my current favorite but mathematically it might only describe a relationship without producing a result being more liek a condition. Same as action
Provider -> Provider means to give something to someone/something, that is not always the case as returning a result of such a runnable is quite common
Supplier -> See Provider
Task -> Is something worth considering but would interfere with another notation of a task being something that is executed by a scheduler.
Work -> Might work but work as in Work-flow is better saved like Task.
Job -> Same as with task
Process -> Might work but again is better be reserved as well as not all results are produced by an actually process (getter example)
These are the alternatives I have found. The closest bet is a Supplier or ResultSupplier interface but it sounds awkward.
Does anyone have a better naming idea or knows frameworks that live happily with the presented (or currently missed out) alternatives?