Difference between Synchronous and asynchronous in Servicenow?

manojpanda
Giga Contributor

Could anyone please help me on a good scenario with Difference between Synchronous and asynchronous in Servicenow?

9 REPLIES 9

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,



Synchronous means when ever you make a request to fetch values from server in your client script, code will wait there until it doesn't get a response from server.



Async mean regardless of request next line of code gets executed. It does not wait for response.



Thank you,
Ashutosh


Hello Ashutosh,

 

Can you please explain both with an example ?  Just a syntax part to call script include.

It would be much helpful !

 

Thanks in advance !

ok

any example for this sceniroo