JS service on webOS

Hi, I have question on how the services runs on webOS.

I have called same api twice at the same time using luna cmd, and the two services showed different results.

When I called service A's api a, the service ran sychronously showing the result as below.

  • start a1
  • finish a1
  • start a2
  • finish a2

However, the other service's api b ran asynchronously as below.

  • start b1
  • start b2
  • finish b2
  • finish b1

Why do these two services show different results?
Is there a way to make asynchronous process to run synchronously?

Please provide details about how your calling the API's of Service A & Service B

Also source code info about where you are printing the start & finish logs , to understand more about your query .