Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Interrupted questions! thx!  RSS feed

 
Javan Li
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what's diff between isInterrupted() & interrupted() ?
 
Brendan Birt
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
interrupted works only on the current thread (Thread.currentThread), but isInterrupted will work on any thread.
Other than that, they're identical.
[ December 22, 2002: Message edited by: Brendan Birt ]
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's one difference between them. The other difference is explained in the API. (Actually, they both are explained there. )
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!