Skip to content

Commit

Permalink
Revert "Add missing AsAsyncAction and AsAsyncOperation methods. (#169)…
Browse files Browse the repository at this point in the history
…" (#171)

This reverts commit 630c45e.
  • Loading branch information
Scottj1s authored Apr 22, 2020
1 parent a7de29e commit cf83965
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions cswinrt/strings/additions/Windows.Foundation/Windows.Foundation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -969,22 +969,6 @@ private void Complete(IAsyncInfo asyncInfo, Func<IAsyncInfo, TResult> getResults
objRef.Dispose();
}
}
}

public static IAsyncAction AsAsyncAction(this Task source)
{
if (source == null)
throw new ArgumentNullException(nameof(source));

return new TaskToAsyncActionAdapter(source, underlyingCancelTokenSource: null);
}

public static IAsyncOperation<TResult> AsAsyncOperation<TResult>(this Task<TResult> source)
{
if (source == null)
throw new ArgumentNullException(nameof(source));

return new TaskToAsyncOperationAdapter<TResult>(source, underlyingCancelTokenSource: null);
}
}
}

0 comments on commit cf83965

Please sign in to comment.