Is it possible to call javascript service sync or async during runtime
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Is it possible to call javascript service sync or async during runtime
Hi,
A JavaScript service can be configured as sync or Async during design time . but is it possible to decide it during runtime ? that is , calling javascript service sync or async by passing into a indicator parameter .
Regards,
Sean
Solved! Go to Solution.
- Labels:
-
Coding
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Nope.
Do note that even if you use the async in the platform, you need to trust 100% your code will finish execution, because otherwise you might slowly end up with n async threads that kill your system.
That's one of the issues that are not visible that much when you use async: they spawn completely new threads which don't end up in a queue and are not controlled by any subsystem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @seanccc ,
have you ever figured out? I also would like to call a Service asynchronously which is not marked as such.
Thank you
Benny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Nope.
Do note that even if you use the async in the platform, you need to trust 100% your code will finish execution, because otherwise you might slowly end up with n async threads that kill your system.
That's one of the issues that are not visible that much when you use async: they spawn completely new threads which don't end up in a queue and are not controlled by any subsystem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Got it, thank you very much for your immediate feedback.
