Pending execution in CBL

Hello! I tried to perform some actions with specific table(fetch, delete, save) in the same time. Probably I exceeded API limit and got Service invocation failed by timeout, can I use something like Thread.sleep? I know that it’s bad practice, but I need something for make it work. Did you have some build in methods for this? Or I should create
queue on client side?
Thanks for advance!

Hi Oleh,

It looks like one of your operations takes to much time.
There is the restriction for running time of your business logic scripts in production mode.
Initially, it is 5 sec but you can extend it with function pack
About Thread.sleep - you can use it but you should remember about the timeout for execution of your code (5 sec)

Regards Ilya