logoalt Hacker News

vlovich123yesterday at 11:23 AM1 replyview on HN

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.


Replies

kaoDyesterday at 11:43 AM

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.

show 1 reply