cancel
Showing results for 
Search instead for 
Did you mean: 

sleep in hana XS

0 Kudos
749

Hi all,

It there way to do sleep or wait in xs hana? 

I do some pooling in xsjs, want to sleep a while in order to reduce number of calls. Waiting in a loop is not an option because it takes a lot of CPU time.

Unfortunately, SetTimeout is not available in XS.

Many thanks,

Anton

View Entire Topic
0 Kudos

I have got some answers from other sources and found out that it is not possible to do in XS JS.  It is even harmful " it impacting the overall XSEngine because you aren’t returning your JavaScript VM to the pool in a timely manager. The scaling of XS Classic is dependent upon the quick swapping of VMs into and out of a relatively small pool. "

I will implement "wait functionality" in the consumer.