zompinc / sync-method-generator

Generates a synchronized version of an async method
MIT License
48 stars 4 forks source link

ValueTask.AsTask does not supported. #54

Closed lsoft closed 7 months ago

lsoft commented 7 months ago

Hello.

For my codebase this is not relevant, but having this is good because of completeness reasons.

    public partial class Subject1
    {
        [Zomp.SyncMethodGenerator.CreateSyncVersion]
        public async Task<int> FooAsync(
            ValueTask<int> vt
            )
        {
            var r = await vt.AsTask();
            return r;
        }
    }

image

virzak commented 7 months ago

Version 1.3.17 has the fix