Service Manager 9.5X async javascript function for SOAP

Hello experts,

I need help or does anyone know how to make an async function in Service Manager, I need this call for SOAP integration with a custom tool.

As I understand Service Manager compiler for JS builds JS synchronous so it goes line by line, for this integration I need a different approach and I need to solve this like this:

- function test (x) --> GET DATA --> STORE DATA
- function test (y) --> GET DATA --> STORE DATA
- function test (z) --> GET DATA --> STORE DATA

This would be simultaneously...

Best regards,
Dino