Guest User

Untitled

a guest
Jun 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. if (!tasks.offer(task)) {
  2. throw new RejectedExecutionException("back-pressured?");
  3. }
  4. if (!running) {
  5. lock.lock();
  6. try {
  7. condition.signal();
  8. } finally {
  9. lock.unlock();
  10. }
  11. }
  12. return null;
Add Comment
Please, Sign In to add comment