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

Claim 8:
9. A method implemented on a computing device having at least one processor and a memory, the method comprising:
generating a single reusable object for use in executing a plurality of iterations of an asynchronous enumerable, the asynchronous enumerable iterates through a collection of data asynchronously, the single reusable object including an enumerable, an enumerator, an awaitable, and an awaiter, wherein the single reusable object is generated from instantiation of a compiler-generated class for the asynchronous enumerable;
executing at least one iteration of the plurality of iterations of the asynchronous enumerable; and
upon determining, through the awaitable, that an asynchronous operation of the asynchronous enumerable has not completed, suspending processing of a current iteration until the awaiter signals completion of the asynchronous operation.