Skip to content

Commit 913b178

Browse files
Correct compiler directives.
1 parent b8fc88f commit 913b178

6 files changed

Lines changed: 7 additions & 8 deletions

File tree

Open.ChannelExtensions.ComparisonTests/Program.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ await Enumerable
106106
Console.WriteLine();
107107
}
108108

109-
#if NETCOREAPP3_0
110109
{
111110
Console.WriteLine("Async Enumerable test...");
112111
var sw = Stopwatch.StartNew();
@@ -120,7 +119,6 @@ await Enumerable
120119
Console.WriteLine(sw.Elapsed);
121120
Console.WriteLine();
122121
}
123-
#endif
124122

125123
}
126124

Open.ChannelExtensions.Tests/BatchTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ public static async Task TimeoutTest1()
259259
}));
260260
}
261261

262-
#if NET5_0_OR_GREATER
263262
[Fact]
264263
public static async Task BatchReadBehavior()
265264
{
@@ -408,5 +407,4 @@ public static async IAsyncEnumerable<IList<T>> ReadBatchEnumerableAsyncBakedIn<T
408407
if (item?.Count > 0) yield return item;
409408
}
410409
}
411-
#endif
412410
}

Open.ChannelExtensions/Extensions.Source.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,8 @@ public static ChannelReader<T> Source<T>(
255255
CancellationToken cancellationToken)
256256
=> Source(target, source, out _, false, cancellationToken);
257257

258-
#if NETSTANDARD2_1
258+
#if NETSTANDARD2_0
259+
#else
259260
/// <inheritdoc cref="SourceAsync{TWrite, TRead}(Channel{TWrite, TRead}, IEnumerable{ValueTask{TWrite}}, out ValueTask{long}, bool, CancellationToken)"/>
260261
public static ChannelReader<TRead> Source<TWrite, TRead>(
261262
this Channel<TWrite, TRead> target,

Open.ChannelExtensions/Extensions.Write.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,8 @@ public static ValueTask<long> WriteAllLines(
309309
CancellationToken cancellationToken)
310310
=> WriteAllLines(target, source, complete, false, cancellationToken);
311311

312-
#if NETSTANDARD2_1
312+
#if NETSTANDARD2_0
313+
#else
313314
/// <summary>
314315
/// Asynchronously writes all entries from the source to the channel.
315316
/// </summary>

Open.ChannelExtensions/Extensions._.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ public static ChannelReader<T> ToChannel<T>(this IEnumerable<T> source,
266266
=> CreateChannel<T>(capacity, singleReader)
267267
.Source(source, deferredExecution, cancellationToken);
268268

269-
#if NETSTANDARD2_1
269+
#if NETSTANDARD2_0
270+
#else
270271
/// <summary>
271272
/// Writes all entries from the source to a channel and calls complete when finished.
272273
/// </summary>

Open.ChannelExtensions/Open.ChannelExtensions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<RepositoryType>git</RepositoryType>
2323
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
2424
<GenerateDocumentationFile>true</GenerateDocumentationFile>
25-
<Version>6.3.1</Version>
25+
<Version>6.3.2</Version>
2626
<PackageReleaseNotes></PackageReleaseNotes>
2727
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2828
<PublishRepositoryUrl>true</PublishRepositoryUrl>

0 commit comments

Comments
 (0)