ASync procedure call
Original Reporter info from Mantis: henrique @henriquewerlang
-
Reporter name: henrique
Original Reporter info from Mantis: henrique @henriquewerlang
- Reporter name: henrique
Description:
When I declare an asynchronous procedure and try to register the "then", it gives a build error that this is not allowed.
This is because the transpiler does not convert my procedure to a function that returns a TJSPromise.
Of course, to resolve this situation I changed my procedure to a function that returns a promise. But I believe that to facilitate the use this conversion could be done by the transpiler.
I've attach a project that occurs to the error.
Mantis conversion info:
- Mantis ID: 38432
- OS: Windows
- OS Build: 10
- Build: trunk
- Platform: Pas2Js