Hi Sameera,

I have two admin services to be called. Which I have to call in 2 seconds
delay

Regards
Senduran

On Wed, Mar 25, 2015 at 10:21 AM, Sameera Medagammaddegedara <
samee...@wso2.com> wrote:

> 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, <danush...@wso2.com> 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 <sendu...@wso2.com>
>> *Sent:* ‎Tuesday‎, ‎March‎ ‎24‎, ‎2015 ‎11‎:‎15‎ ‎PM
>> *To:* Mahesh Chinthaka <mahe...@wso2.com>
>> *Cc:* WSO2 Developers' List <dev@wso2.org>
>>
>> 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 <mahe...@wso2.com>
>> 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 <
>>> sendu...@wso2.com> 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
>>>> Dev@wso2.org
>>>> 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: mahe...@wso2.com | Web: www.wso2.com
>>>
>>
>>
>>
>> --
>> *Senduran *
>> Software Engineer,
>> WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
>> Mobile: +94 77 952 6548
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sameera Medagammaddegedara
> Software Engineer
>
> Contact:
> Email: samee...@wso2.com
> Mobile: + 94 077 255 3005
>



-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
Mobile: +94 77 952 6548
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to