Skip to content

Hangs in custom AsyncTaskMethodBuilder. #71521

Answered by VolodymyrBS
lsoft asked this question in Q&A
Discussion options

You must be logged in to vote

You should remove readonly from _orig declaration.
AsyncTaskMethodBuilder is a mutable struct so the compiler makes a defensive copy of _orig before calling its method to make sure the field will not be changed. and so in the end _orig.Task will always return different task that will newer finish

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gfoidl
Comment options

@lsoft
Comment options

Answer selected by lsoft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants