Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun main(){
- val sthread = SimpleThread( 100).apply {
- start()
- }
- println("thread has timed out")
- }
- class SimpleThread (val timeout : Int) : Thread() {
- override fun run() {
- super.run()
- println("im running " + Thread.currentThread().toString())
- }
- }
Add Comment
Please, Sign In to add comment