Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Remove the AggressiveInlining
Browse files Browse the repository at this point in the history
  • Loading branch information
benaadams committed May 30, 2019
1 parent 70fae44 commit d8a4581
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public void SetStateMachine(IAsyncStateMachine stateMachine)
=> AsyncMethodBuilderCore.SetStateMachine(stateMachine, m_task);

/// <summary>Marks the task as successfully completed.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void SetResult()
{
if (m_task is null)
Expand All @@ -62,7 +61,6 @@ public void SetException(Exception exception)
/// <summary>Gets the task for this builder.</summary>
public ValueTask Task
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
if (ReferenceEquals(m_task, System.Threading.Tasks.Task.s_cachedCompleted))
Expand Down Expand Up @@ -137,7 +135,6 @@ public void SetStateMachine(IAsyncStateMachine stateMachine)

/// <summary>Marks the task as successfully completed.</summary>
/// <param name="result">The result to use to complete the task.</param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void SetResult(TResult result)
{
if (m_task is null)
Expand All @@ -159,7 +156,6 @@ public void SetException(Exception exception)
/// <summary>Gets the task for this builder.</summary>
public ValueTask<TResult> Task
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
if (ReferenceEquals(s_haveResultSentinel, m_task))
Expand Down

0 comments on commit d8a4581

Please sign in to comment.