Unlock instant, AI-driven research and patent intelligence for your innovation.

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.

Inactive Publication Date: 2018-12-25
HANGZHOU ANHENG INFORMATION TECH CO LTD
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the purpose of the present invention is to provide a method, device and electronic equipment that avoid repeated execution of multiple asynchronous methods, so as to alleviate the technical problem that repeated execution of multiple identical asynchronous methods cannot be avoided in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, apparatus and electronic device for avoiding repeated execution of multiple asynchronous methods
  • Method, apparatus and electronic device for avoiding repeated execution of multiple asynchronous methods
  • Method, apparatus and electronic device for avoiding repeated execution of multiple asynchronous methods

Examples

Experimental program
Comparison scheme
Effect test

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, ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method, a device and an electronic device for avoiding repeated execution of a plurality of asynchronous methods, which relate to the technical field of computer software. Thehybrid method is executed sequentially according to the execution status flag bits of the hybrid method. The method can enable the hybrid method to be executed according to the execution state flag bit order, and effectively avoid multiple asynchronous methods to execute repeatedly, thereby reducing the memory space occupation, effectively improving the performance of Html5 page in App, and bringing a better user experience.

Description

technical field [0001] The present invention relates to the technical field of computer software, in particular to a method, device and electronic equipment for avoiding repeated execution of multiple asynchronous methods. Background technique [0002] With the rise of the mobile wave, various Apps emerge in endlessly, and the extremely fast business expansion has improved the team's requirements for development efficiency. The hybrid communication between Native and Html5 front-end development is convenient for front-end developers to directly call native components in the webview. If a hybrid method of the webview interaction in the webview is executed multiple times, there will be a problem of multiple repeated method executions, resulting in excessive memory usage, and in severe cases, memory overflow will occur. [0003] In the prior art, most of the hybrid methods, in order to ensure sequential execution, the front-end logic is written in the callback, while the js cal...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/54
CPCG06F9/548
Inventor 左婵娟范渊黄进
Owner HANGZHOU ANHENG INFORMATION TECH CO LTD