Patent ID: 11922151
Assignee: MICROSOFT TECHNOLOGY LICENSING, LLC
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 14:
15. A device, comprising:
at least one processor and a memory;
wherein the at least one processor is configured to:
receive a program including an asynchronous enumerable and an asynchronous enumeration, the asynchronous enumerable including an asynchronous operation, the asynchronous enumeration consuming the asynchronous enumerable;
create a class for the asynchronous enumerable that contains operations to execute the asynchronous enumerable, the class including an implementation of an asynchronous enumerator interface, an implementation of an asynchronous enumerable interface, an implementation of an awaitable interface, and an implementation of an awaiter interface;
transform the asynchronous enumeration into a set of instructions that execute the asynchronous enumeration using the operations of the class; and
generate executable code that when executed invokes, at runtime, a single object based on the class for all iterations of the asynchronous enumerable.