public async void InstanceMethodsHaveAsynchronousEquivalentsValueTask() { var @object = new ClassWithAsyncEquivalentsValueTask(); @object.SaveChanges(); @object.Abort(); @object.AcceptSocket(); @object.AcceptTcpClient(); @object.AccessFailed(); }
public static bool AccessFailed(this ClassWithAsyncEquivalentsValueTask @object) => true;
public static ValueTask <bool> AcceptTcpClientAsync(this ClassWithAsyncEquivalentsValueTask @object) => new ValueTask <bool>(true);