Method, apparatus and electronic device for avoiding repeated execution of multiple asynchronous methods
A repetitive execution, asynchronous technology, applied in the direction of multi-programming device, program control design, electrical digital data processing, etc., to avoid repetitive execution, improve user experience, and improve performance.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] figure 1 is a method to avoid repeated execution of multiple asynchronous methods according to an embodiment of the present invention, such as figure 1 As shown, the method includes the following steps:
[0045] Step S101, obtaining the indication information of entering the callback, wherein the indication information is used to indicate the information of calling the hybrid method;
[0046] In step S102, the hybrid methods are sequentially executed according to the execution state flag bits of the hybrid methods.
[0047] In the communication between Html5 and Native, front-end developers and App developers will formulate an interactive method, referred to as the hybrid method, which is convenient for front-end developers to directly call native components in webview.
[0048] When the instruction information of entering the callback is obtained and the hybrid method interacting with the webview in the App is called, the hybrid method is executed sequentially accord...
Embodiment 2
[0073] The embodiment of the present invention also provides a device for avoiding repeated execution of multiple asynchronous methods. The device for preventing repeated execution of multiple asynchronous methods is mainly used to implement the method for avoiding repeated execution of multiple asynchronous methods provided in the above content of the embodiment of the present invention. method, the following specifically introduces the device for avoiding repeated execution of multiple asynchronous methods provided by the embodiment of the present invention.
[0074] Figure 5 is a schematic diagram of a device for avoiding repeated execution of multiple asynchronous methods according to an embodiment of the present invention, such as Figure 5 As shown, the device mainly includes an acquisition module 10 and an execution module 20, wherein:
[0075] An acquisition module, configured to acquire indication information entering the callback, wherein the indication information...
Embodiment 3
[0095] An embodiment of the present invention provides an electronic device, referring to Figure 6 , the electronic device includes: a processor 30, a memory 31, a bus 32 and a communication interface 33, the processor 30, the communication interface 33 and the memory 31 are connected through the bus 32; the processor 30 is used to execute the executable module stored in the memory 31, For example a computer program. The processor implements the steps of the methods described in the method embodiments when the processor executes the program.
[0096] Wherein, the memory 31 may include a high-speed random access memory (RAM, Random Access Memory), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 33 (which may be wired or wireless), and the Internet, wide area network, ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


