Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.out.println("Run asynchronously..");
- Capitalizer<future> processorAsync = new Capitalizer<>(new AsyncWork());
- assertTrue(processorAsync.process()
- .foldsUnsafe()
- .foldLeft(false,(a,b)->a|b));
- System.out.println("Run synchronously..");
- Capitalizer<tryType> processorSync = new Capitalizer<>(new SyncWork());
- assertTrue(processorSync.process()
- .foldsUnsafe()
- .foldLeft(false,(a,b)->a|b));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement