This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
shared/System/Runtime/CompilerServices
src/System/Runtime/CompilerServices Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public struct AsyncValueTaskMethodBuilder<TResult>
2525 /// <summary>Creates an instance of the <see cref="AsyncValueTaskMethodBuilder{TResult}"/> struct.</summary>
2626 /// <returns>The initialized instance.</returns>
2727 public static AsyncValueTaskMethodBuilder < TResult > Create ( ) =>
28- new AsyncValueTaskMethodBuilder < TResult > ( ) { _methodBuilder = AsyncTaskMethodBuilder < TResult > . Create ( ) } ;
28+ default ( AsyncValueTaskMethodBuilder < TResult > ) ;
2929
3030 /// <summary>Begins running the builder with the associated state machine.</summary>
3131 /// <typeparam name="TStateMachine">The type of the state machine.</typeparam>
Original file line number Diff line number Diff line change @@ -431,8 +431,9 @@ public struct AsyncTaskMethodBuilder<TResult>
431431 public static AsyncTaskMethodBuilder < TResult > Create ( )
432432 {
433433 return default ( AsyncTaskMethodBuilder < TResult > ) ;
434- // NOTE: If this method is ever updated to perform more initialization,
435- // ATMB.Create must also be updated to call this Create method.
434+ // NOTE: If this method is ever updated to perform more initialization,
435+ // other Create methods like AsyncTaskMethodBuilder.Create and
436+ // AsyncValueTaskMethodBuilder.Create must be updated to call this.
436437 }
437438
438439 /// <summary>Initiates the builder's execution with the associated state machine.</summary>
You can’t perform that action at this time.
0 commit comments