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

Asynchronous function generation method and device, electronic equipment and readable storage medium

A function generation and function technology, applied in the field of artificial intelligence, can solve the problems of low efficiency, poor readability, and inability to directly reuse asynchronous functions, and achieve the effect of improving efficiency, improving accuracy, and ensuring accuracy.

Pending Publication Date: 2022-08-05
PINGAN PUHUI ENTERPRISE MANAGEMENT CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the existing asynchronous function generation methods are usually coded based on iterator functions to generate asynchronous functions. This method needs to nest trigger execution codes that change the internal state in different asynchronous execution functions, and the readability is relatively poor. And it cannot be reused directly, resulting in low efficiency of asynchronous function generation

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
  • Asynchronous function generation method and device, electronic equipment and readable storage medium
  • Asynchronous function generation method and device, electronic equipment and readable storage medium
  • Asynchronous function generation method and device, electronic equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

[0056]The embodiment of the present application provides an asynchronous function generation method. The execution body of the asynchronous function generation method includes, but is not limited to, at least one of electronic devices that can be configured to execute the method provided by the embodiments of the present application, such as a server and a terminal. In other words, the asynchronous function generation method may be executed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server can be an independent server, or can provide cloud services, cloud databases, cloud computing, cloud functions...

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 relates to an artificial intelligence technology, and discloses an asynchronous function generation method, which comprises the following steps: acquiring a to-be-processed project, and carrying out file identification and extraction on a plurality of project files in the to-be-processed project to obtain a target file meeting a preset standard; function declaration content in the target file is extracted, type identification is conducted on the function declaration content, and a type identification result is obtained; performing function identification on the target file according to the type identification result to obtain a generator function; and carrying out asynchronous compilation on the generator function to obtain an asynchronous function. In addition, the invention also relates to a block chain technology, and the target file can be stored in a node of a block chain. The invention further provides an asynchronous function generation device, electronic equipment and a readable storage medium. The asynchronous function generation efficiency can be improved.

Description

technical field [0001] The present invention relates to the technical field of artificial intelligence, and in particular, to a method, an apparatus, an electronic device and a readable storage medium for generating an asynchronous function. Background technique [0002] In the front-end JavaScript language, there is often code that is executed asynchronously. In actual business scenarios, there is usually code that can only be executed after the completion of the asynchronous execution code. For example, an interface requests data to be returned, and the returned data contains useful information. For the dynamic content displayed on the page, the execution code of page rendering must be executed in the interface requesting this code, and it can only be executed after the asynchronous process of the server returning data through the interface is completed. In the process of code writing, the easiest way is to put the code executed by page rendering in the callback function o...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/41G06F8/72G06F8/36G06F16/14
CPCG06F8/41G06F8/72G06F8/42G06F8/36G06F16/148
Inventor 黄康
Owner PINGAN PUHUI ENTERPRISE MANAGEMENT CO LTD