Zomp.SyncMethodGenerator 0.1.34-alpha

Sync Method Generator

Build Support .NET Standard 2.0 Nuget

This .NET source generator produces a sync method from an async one.

Use cases

  • A library which exposes both sync and async version of a method
  • An application has to process two kinds of data in the same way:
    • Large data from I/O which cannot be stored in memory before processing: Original async method
    • Small sample of data in memory, usually a sample of the larger data: Generated sync method

How it works

Add CreateSyncVersionAttribute to your async method in your partial class

[Zomp.SyncMethodGenerator.CreateSyncVersion]
static async Task WriteAsync(ReadOnlyMemory<byte> buffer, Stream stream, 
CancellationToken ct)
    => await stream.WriteAsync(buffer, ct).ConfigureAwait(true);

And it will generate a sync version of the method:

static void Write(ReadOnlySpan<byte> buffer, Stream stream)
    => stream.Write(buffer);

A list of changes applied to the new synchronized method:

Installation

To add the library use:

dotnet add package Zomp.SyncMethodGenerator

Showing the top 20 packages that depend on Zomp.SyncMethodGenerator.

Packages Downloads
z440.atl.core
Fully managed, portable and easy-to-use C# library to read and edit audio data and metadata (tags) from various audio formats, playlists and CUE sheets
38
z440.atl.core
Fully managed, portable and easy-to-use C# library to read and edit audio data and metadata (tags) from various audio formats, playlists and CUE sheets
36
z440.atl.core
Fully managed, portable and easy-to-use C# library to read and edit audio data and metadata (tags) from various audio formats, playlists and CUE sheets
33
z440.atl.core
Fully managed, portable and easy-to-use C# library to read and edit audio data and metadata (tags) from various audio formats, playlists and CUE sheets
32
z440.atl.core
Fully managed, portable and easy-to-use C# library to read and edit audio data and metadata (tags) from various audio formats, playlists and CUE sheets
30
z440.atl.core
Fully managed, portable and easy-to-use C# library to read and edit audio data and metadata (tags) from various audio formats, playlists and CUE sheets
28
z440.atl.core
Fully managed, portable and easy-to-use C# library to read and edit audio data and metadata (tags) from various audio formats, playlists and CUE sheets
27
z440.atl.core
Fully managed, portable and easy-to-use C# library to read and edit audio data and metadata (tags) from various audio formats, playlists and CUE sheets
26
z440.atl.core
Fully managed, portable and easy-to-use C# library to read and edit audio data and metadata (tags) from various audio formats, playlists and CUE sheets
24
z440.atl.core
Fully managed, portable and easy-to-use C# library to read and edit audio data and metadata (tags) from various audio formats, playlists and CUE sheets
23
z440.atl.core
Fully managed, portable and easy-to-use C# library to read and edit audio data and metadata (tags) from various audio formats, playlists and CUE sheets
21
z440.atl.core
Fully managed, portable and easy-to-use C# library to read and edit audio data and metadata (tags) from various audio formats, playlists and CUE sheets
20
z440.atl.core
Fully managed, portable and easy-to-use C# library to read and edit audio data and metadata (tags) from various audio formats, playlists and CUE sheets
19

.NET Standard 2.0

  • No dependencies.

Version Downloads Last updated
2.0.56 3 09/15/2026
2.0.53 3 09/16/2026
2.0.42 13 07/30/2026
2.0.41 16 07/30/2026
2.0.40 14 07/30/2026
2.0.38 11 07/30/2026
2.0.35 11 07/30/2026
2.0.33 13 07/30/2026
2.0.32 13 07/30/2026
2.0.20 13 07/30/2026
2.0.16 16 06/27/2026
2.0.15 17 06/26/2026
2.0.13 24 05/04/2026
2.0.8 20 04/07/2026
2.0.7 22 04/07/2026
2.0.5 21 04/07/2026
2.0.4 16 04/07/2026
2.0.3 23 04/07/2026
2.0.2 23 04/07/2026
2.0.1 23 04/07/2026
1.6.17 24 04/07/2026
1.6.16 18 04/07/2026
1.6.15 23 04/07/2026
1.6.14 19 04/07/2026
1.6.13 24 04/07/2026
1.6.12 19 04/07/2026
1.6.11 24 04/07/2026
1.6.10 20 04/07/2026
1.6.9 20 04/07/2026
1.6.8 21 04/07/2026
1.6.3 23 04/07/2026
1.6.2 23 04/07/2026
1.6.1 22 04/07/2026
1.5.3 24 04/07/2026
1.5.1 23 04/07/2026
1.4.38 22 04/07/2026
1.4.37 19 04/07/2026
1.4.35 23 04/07/2026
1.4.32 20 04/07/2026
1.4.30 21 04/07/2026
1.4.29 18 04/07/2026
1.4.28 21 04/07/2026
1.4.27 21 04/07/2026
1.4.26 24 04/07/2026
1.4.25 19 04/07/2026
1.4.20 22 04/07/2026
1.4.18 20 04/07/2026
1.4.15 21 04/07/2026
1.4.14 22 04/07/2026
1.4.13 24 04/07/2026
1.4.11 22 04/07/2026
1.4.10 28 04/07/2026
1.4.8 20 04/07/2026
1.4.3 21 04/07/2026
1.4.1 22 04/07/2026
1.3.44 20 04/07/2026
1.3.43 23 04/07/2026
1.3.40 24 04/07/2026
1.3.39 20 04/07/2026
1.3.38 20 04/07/2026
1.3.36 23 04/07/2026
1.3.35 21 04/07/2026
1.3.33 24 04/07/2026
1.3.28 20 04/07/2026
1.3.27 21 04/07/2026
1.3.24 17 04/07/2026
1.3.23 21 04/07/2026
1.3.21 23 04/07/2026
1.3.20 17 04/07/2026
1.3.18 23 04/07/2026
1.3.17 22 04/07/2026
1.3.16 17 04/07/2026
1.3.13 19 04/07/2026
1.3.8-beta 21 04/07/2026
1.3.6 20 04/07/2026
1.3.5 21 04/07/2026
1.3.1 25 04/07/2026
1.2.24 21 04/07/2026
1.2.18 20 04/07/2026
1.2.16 19 04/07/2026
1.2.13 22 04/07/2026
1.2.12 18 04/07/2026
1.2.8 21 04/07/2026
1.2.3 22 04/07/2026
1.2.1 23 04/07/2026
1.1.2 22 04/07/2026
1.0.14 23 04/07/2026
1.0.12 19 04/07/2026
1.0.11 21 04/07/2026
1.0.5 21 04/07/2026
1.0.3 18 04/07/2026
1.0.2 20 04/07/2026
1.0.1 23 04/07/2026
0.1.39-alpha 20 04/07/2026
0.1.38-alpha 20 04/07/2026
0.1.37-alpha 21 04/07/2026
0.1.34-alpha 16 04/07/2026
0.1.33-alpha 26 04/07/2026
0.1.30-alpha 27 04/07/2026
0.1.22-alpha 28 04/07/2026
0.1.21-alpha 30 04/07/2026
0.1.19-alpha 27 04/07/2026
0.1.18-alpha 28 04/07/2026
0.1.17-alpha 29 04/07/2026
0.1.13-alpha 23 04/07/2026
0.1.12-alpha 21 04/07/2026
0.1.10-alpha 30 04/07/2026
0.1.9-alpha 18 04/07/2026
0.1.8-alpha 20 04/07/2026
0.1.5-alpha 23 04/07/2026
0.1.4-alpha 23 04/07/2026
0.1.3-alpha 28 04/07/2026
0.1.2-alpha 28 04/07/2026
0.1.1-alpha 31 04/07/2026