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
// Direct copy of the above RunInternal overload, except that it passes the state into the callback strongly-typed and by ref.internalstaticvoidRunInternal<TState>(ExecutionContext?executionContext,ContextCallback<TState>callback,refTStatestate){// Note: ExecutionContext.RunInternal is an extremely hot function and used by every await, ThreadPool execution, etc.
Please expose this method.
This will help Non-BCL developers also optimize their libraries.
Also an implementation of the IValueTaskSource suggests usage of the ExecutionContext.Run and without the typed version most probably additional GC allocation will be required.
The text was updated successfully, but these errors were encountered:
From the BCL source code:
Please expose this method.
This will help Non-BCL developers also optimize their libraries.
Also an implementation of the
IValueTaskSource
suggests usage of theExecutionContext.Run
and without the typed version most probably additional GC allocation will be required.The text was updated successfully, but these errors were encountered: