Mentioned by apocalisp. I thought I saw them also in the FunctionaJava API, but right now I see I was mistaken.

Apparently, if a calculation returns a Future<A> value, you can carry on and handle it, even if you aren’t certain that that function has actually calculated it. But this seems to me the case for every functor.

Gotta think more about this.

One thought on “Futures

  1. Rúnar says:

    Hi Marco,

    Functional Java has Promise, which is what you’re looking for. It’s a monad, so its unit lets you fork processes, its fmap lets you extend a running process, and its join tells a process to merge with its child process.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s