Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. System.out.println("Run asynchronously..");
  2. Capitalizer<future> processorAsync = new Capitalizer<>(new AsyncWork());
  3. assertTrue(processorAsync.process()
  4. .foldsUnsafe()
  5. .foldLeft(false,(a,b)->a|b));
  6.  
  7.  
  8. System.out.println("Run synchronously..");
  9. Capitalizer<tryType> processorSync = new Capitalizer<>(new SyncWork());
  10. assertTrue(processorSync.process()
  11. .foldsUnsafe()
  12. .foldLeft(false,(a,b)->a|b));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement