Skip to content

AsyncETTaskMethodBuilder.OnCompleted #3

@yueh0607

Description

@yueh0607

AsyncETTaskMethodBuilder.OnCompleted uses the Action closure to prevent the MoveNextRunner from being recycled, and uses the movenext delegation to avoid the GC problem of builder. OnCompleted (machine. MoveNext). Please ask whether there is such a problem: AsyncETTaskMethodBuilder is statically generated code, and the delegation to create static methods is 0GC Alloc, but GCAlloc is generated in the modified implementation method, which has a certain possibility of reverse optimization.
The following is Chatgpt's explanation of AsyncTaskBuilder. OnCompleted (Action continuation):
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions