Hi Senduran,

JavaScript is single threaded and barring the concept of web workers[1]
does not support a multi-threaded execution model.

What is your original use case?

*Reference*
[1]
https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers

Thank You,
Sameera

On Wed, Mar 25, 2015 at 5:47 AM, <[email protected]> wrote:

>  Hi Senduran
> Can you share the code segment you tried?
>
> [1] http://www.w3schools.com/js/js_timing.asp
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> *From:* Senduran Balasubramaniyam <[email protected]>
> *Sent:* ‎Tuesday‎, ‎March‎ ‎24‎, ‎2015 ‎11‎:‎15‎ ‎PM
> *To:* Mahesh Chinthaka <[email protected]>
> *Cc:* WSO2 Developers' List <[email protected]>
>
> Thanks Mahesh,
>
> When I gave a function and the time delay to setTimeout() it didn't work
> for me. The function didn't wait for the time delay I passed, instead it
> executed immediately.
>
> I totally forgot we can simply use java methods in Jaggery. It works fine.
>
> Thanks again
>
> On Tue, Mar 24, 2015 at 10:44 PM, Mahesh Chinthaka <[email protected]>
> wrote:
>
>> Hi Senduran,
>> What are the difficulties u faced with using setTimeOut()  ?
>>
>> AFAIK this should work since we have the Rhino support in jaggery,
>>
>> java.lang.Thread.sleep(timeInMilliseconds);
>>
>>
>> Thanks
>>
>> On Tue, Mar 24, 2015 at 10:27 PM, Senduran Balasubramaniyam <
>> [email protected]> wrote:
>>
>>> Hi
>>>
>>> What is a best option for $subject ?
>>> I tried the setTimeout()
>>> <http://www.w3schools.com/jsref/met_win_settimeout.asp> but doesn't
>>> seem much helpful
>>>
>>> Thanks
>>> Senduran
>>>
>>> --
>>> *Senduran *
>>> Software Engineer,
>>> WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
>>> Mobile: +94 77 952 6548
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>> Email: [email protected] | Web: www.wso2.com
>>
>
>
>
> --
> *Senduran *
> Software Engineer,
> WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
> Mobile: +94 77 952 6548
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sameera Medagammaddegedara
Software Engineer

Contact:
Email: [email protected]
Mobile: + 94 077 255 3005
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to