Thread in javascript

40 views
Skip to first unread message

Debapriya Pal

unread,
Aug 22, 2016, 3:39:13 PM8/22/16
to mozilla-rhino
I want to implement something like below in javascript

class MyThread extends Thread{
     Object obj;
     public MyThread(Object obj){
         super();
         this.obj = obj;
     }

     public void run(){
          obj.test();
     }
}


Reply all
Reply to author
Forward
0 new messages