• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ExecutorService shutdown - blocking?

 
bob breitling
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does a call to an ExecutorService object's shutdown method block?

TIA,

Bob
 
Mike Simmons
Ranch Hand
Posts: 3040
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This isn't clearly documented, but you can test easily:

You can also try other ways of creating an ExecutorService. It's possible that some implementations may behave differently.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic