[Pas2js] Cases

cbsistem cbsistem at yahoo.com.br
Mon Oct 29 14:35:04 CET 2018


In my ViewModal LCL view, it puts the processing into LOOP waiting for a
response, and processing does not continue until it is released. This
technique for javascript would not be acceptable. There is something about
this called PROMISE
(https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise)

which is the promise to do something. That is at some point that code will
be executed.
Promisse basically uses two parameters, which would be 2 functions, one when
you have success and another when you have an error


TJSPromiseResolver

You have demo \ promise \ utils.pp examples:



Cristiano



--
Sent from: http://pas2js.38893.n8.nabble.com/


More information about the Pas2js mailing list