# JS service on webOS

**URL:** <https://forum.webosose.org/t/js-service-on-webos/2543>\
**Category:** Uncategorized\
**Created:** [April 18, 2024, 7:30am UTC](https://forum.webosose.org/t/js-service-on-webos/2543 "2024-04-18T07:30:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KLeeP](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/kleep/32/1037_2.png) [@KLeeP](https://forum.webosose.org/u/KLeeP)\
**Post date:** [April 18, 2024, 7:30am UTC](https://forum.webosose.org/t/js-service-on-webos/2543/1 "2024-04-18T07:30:44Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![rajeshgopu](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/rajeshgopu/32/568_2.png) [@rajeshgopu](https://forum.webosose.org/u/rajeshgopu)\
**Post date:** [April 19, 2024, 7:33am UTC](https://forum.webosose.org/t/js-service-on-webos/2543/2 "2024-04-19T07:33:03Z")

</div>

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 .
