You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Async methods have several restrictions such as not allowing ref and ref-like/span locals.
The reason is the technical difficulties that may arise if such locals need to be hoisted. In a code that tries to mix await and span this could be inconvenient.
Besides there can be patterns which are obviously safe - In particular, in a block that does not contain await expressions, such locals would never be hoisted and therefore we could relax the restrictions.
svick, Unknown6656, MkazemAkhgary, geoffkizer, fubar-coder and 43 morejnm2, elgonzo, luizfernandonb and pCYSl5EDgo