Skip to content

A thin abstraction layer on top of the Executors framework to simplify common patterns of parallel tasks executions

Notifications You must be signed in to change notification settings

pablosmedina/executions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

executions

An abstraction layer on top of the Executors framework to simplify common patterns of parallel tasks executions

Callable oneSecondTask = ... Callable twoSecondsTask = ... Callable tenSecondsTask = ...

Collection results = Executions.newExecution().withTask(oneSecondTask) .withTask(twoSecondsTask) .withTask(tenSecondsTask) .withTimeout(5,TimeUnit.SECONDS) .withExecutor(Executors.newFixedThreadPool(4)) .execute();

results.size(); //It returns 2

About

A thin abstraction layer on top of the Executors framework to simplify common patterns of parallel tasks executions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages