Guest User

Untitled

a guest
Feb 18th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. fun main(){
  2.  
  3. val sthread = SimpleThread( 100).apply {
  4. start()
  5. }
  6. println("thread has timed out")
  7. }
  8.  
  9. class SimpleThread (val timeout : Int) : Thread() {
  10.  
  11. override fun run() {
  12. super.run()
  13. println("im running " + Thread.currentThread().toString())
  14. }
  15. }
Add Comment
Please, Sign In to add comment