Improved asynchronous programming execution
An asynchronous and asynchronous operation technology, applied in programming languages/paradigms, program control design, software engineering design, etc., can solve problems such as thread blocking
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
example
[0079] class MyOperation : AsyncOperation
[0080] {
[0081] …
[0082] }
[0083] Here, the result of the operation can be obtained after "yield return":
[0084] IEnumerable ExecuteOperation(...)
[0085] {
[0086] …
[0087] yield return myOperationInstance;
[0088] / / handles myOperationInstance. OperationResult...
[0089] …
[0090] }
[0091] In one embodiment, in this regard, exceptions that occur during execution of an operation (e.g., an asynchronous operation, an aggregate operation, and / or a microservice operation) can be obtained in the OperationException field of the operation, as illustrated in the following pseudocode:
[0092] IEnumerable ExecuteOperation(...)
[0093] {
[0094] …
[0095] yield return operation;
[0096] / / handling operation. OperationException...
[0097] …
[0098] }
[0099] In this regard, in one embodiment, the second level of programming execution can run on the second thread a...
Embodiment 500
[0100] This can be overcome, for example, by providing strongly typed operation results at the programming framework level. In this embodiment, with strongly typed operation results, when a subsequent operation accesses a previous operation result and the previous operation failed due to an exception, for example, in this solution, an operation exception in a previous operation can be automatically raised by the framework Spread a rank. This result is available at Figure 5 shown in , as described above. The following is available with Figure 5 An example of the associated pseudocode for Example Embodiment 500:
[0101] class Operation0
[0102] {
[0103] IEnumerator ExecuteOperation(...)
[0104] {
[0105] yield return operation1;
[0106] yield return operation2;
[0107] yield return operation9;
[0108] }
[0109] }
[0110] class Operation2
[0111] {
[0112] IEnumerator ExecuteOperation(...)
[0113] {
[0114] yield return...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com