There’s got to be some complexity within the executor implementation though I imagine as I believe you have to suspend and resume execution of the calling thread which can be non-trivial.
You can implement an executor with threading to achieve parallelism, but it's not a fundamental characteristic of Future executors.
To reiterate: an executor is just something that runs Futures to completion, and Futures are just things that you can poll for a value.
See sibling comments for additional details.
You can implement an executor with threading to achieve parallelism, but it's not a fundamental characteristic of Future executors.
To reiterate: an executor is just something that runs Futures to completion, and Futures are just things that you can poll for a value.
See sibling comments for additional details.