Skip to content

False RCS1229 #821

@NN---

Description

@NN---

Product and Version Used:
Roslynator.Analyzers 3.2.0

Steps to Reproduce:

using System;
using System.Threading;
using System.Threading.Tasks;

[assembly:CLSCompliant(false)]

namespace ConsoleApp1
{
    public static class Program
    {
        private static ValueTask<int> ReceiveAsync(byte[] data, CancellationToken token)
        {
            using var cancellations = CancellationTokenSource.CreateLinkedTokenSource(token, token);

            return ValueTask.FromResult(data.Length);
        }

        public static void Main()
        {
        }
    }
}

Actual Behavior:

Severity	Code	Description	Project	File	Line	Suppression State
Message	RCS1229	Use async/await when necessary.	

Expected Behavior:
No message

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions