commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ole Ersoy <ole.er...@gmail.com>
Subject Re: [math] threading redux
Date Wed, 22 Apr 2015 15:31:05 GMT
> That is one way to achieve parallelism.  The Executor is one way to
> manage concurrently executing threads in a single process.  There
> are other ways to do this.  My challenge is to find a way to make it
> possible for users to plug in alternatives.

Some of the methods on CompletableFuture allow the provision of an Executor. For example:
https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html#runAsync-java.lang.Runnable-java.util.concurrent.Executor-

Does that fit the "Plug in alternatives" requirement?

Cheers,
- Ole



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message