Quantcast
Channel: [EN] OpenPLi Third-Party Development
Viewing all articles
Browse latest Browse all 1688

Plugin programming: HTTP post request while zapping makes the zap slow

$
0
0

Hi,

 

I'm implementing a plugin which posts data to an HTTPS url when the user moves from one service to another. The problem is that enigma2 displays the spinner and the zap action takes 2 or 3 seconds to finishes.

 

My implementation is as follow:

Current service -> Zap -> Call function sending HTTP post request ->New Service

 

Is there any thread like mechanism where the called function is executed in parallel with the zap action as follows:

 

Current service->Zap->New service

                             |

                              ----->Call function sending HTTP post request

 

Thanks for your help.


Viewing all articles
Browse latest Browse all 1688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>