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

Asynchronous processing method and device of Lua language, computer equipment and storage medium

A technology of asynchronous processing and computer programs, applied in the Internet field, can solve problems such as the lack of widespread implementation of asynchronous processing methods, increased maintenance costs, codes falling into bloated callback codes, etc., to improve business development efficiency, reduce maintenance costs, and reduce bug rates Effect

Active Publication Date: 2021-10-29
深圳市九九互动科技有限公司
View PDF12 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, in the traditional technology, the asynchronous processing method for the Lua language is not widely implemented, and when multiple asynchronous callbacks are connected in series, the code will fall into the bloated callback code, which increases the later maintenance cost

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 processing method and device of Lua language, computer equipment and storage medium
  • Asynchronous processing method and device of Lua language, computer equipment and storage medium
  • Asynchronous processing method and device of Lua language, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0051] The asynchronous processing method of the Lua language provided by this application can be applied to such as figure 1 shown in the application environment. Wherein, the terminal 102 realizes the interaction with the server 104 by uploading the service data to the server 104 . Wherein, the terminal 102 may be, but not limited to, various personal computers, notebook computers and tablet computers, and the server 104 may be realized by an independent server or a server cluster composed of multiple servers.

[0052] In one embodiment, such as figure 2 As shown, an...

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 asynchronous processing method and device of a Lua language, computer equipment and a storage medium. The method comprises the steps that a main thread obtains an asynchronous request generated in service data; the main thread starts a coroutine according to the asynchronous request, the coroutine uploads the service data to a server, and a processing result of the service data returned by the server is received through the coroutine; and the main thread calls a packaged asynchronous callback function to callback the processing result from the coroutine, and updates the service data according to the processing result. According to the operation, when the business needs to be subjected to asynchronous processing, the main thread does not fall into bloated callback by processing the asynchronous operation through the coroutine and calling the processing result of the asynchronous operation through the main thread, so that the maintenance cost is reduced, the readability of the whole code is improved, the business development efficiency is improved, the size of a code file is reduced, and the bug rate in operation is reduced.

Description

[0001] This application claims the priority of the Chinese patent application with the application number 2020111920281 submitted to the China Patent Office on October 30, 2020, and the invention title is "Asynchronous processing method, device, computer equipment and storage medium of Lua language", the entire content of which is passed References are incorporated in this application. technical field [0002] The present application relates to the technical field of the Internet, in particular to an asynchronous processing method, device, computer equipment and storage medium of Lua language. Background technique [0003] The Lua language is a small scripting language designed to be embedded in applications, thus providing flexible extension and customization functions for applications. Lua is written in standard C and can be compiled and run on almost all operating systems and platforms. [0004] With the development of Internet program technology, asynchronous processing...

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): G06F9/448
CPCG06F9/4482
Inventor 魏巍
Owner 深圳市九九互动科技有限公司