mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-05-18 23:05:08 +00:00
Use using System.Runtime.CompilerServices instead of fully-qualified attribute
Agent-Logs-Url: https://github.com/Tyrrrz/DiscordChatExporter/sessions/a1231ba4-d235-4e2d-98b2-a5bef602a85c Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
f656234c38
commit
cbf74ba6a8
@@ -1,6 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using CliFx.Infrastructure;
|
using CliFx.Infrastructure;
|
||||||
@@ -67,8 +68,7 @@ internal static class ConsoleExtensions
|
|||||||
|
|
||||||
public static async IAsyncEnumerable<string> ReadLinesAsync(
|
public static async IAsyncEnumerable<string> ReadLinesAsync(
|
||||||
this TextReader reader,
|
this TextReader reader,
|
||||||
[System.Runtime.CompilerServices.EnumeratorCancellation]
|
[EnumeratorCancellation] CancellationToken cancellationToken = default
|
||||||
CancellationToken cancellationToken = default
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
while (await reader.ReadLineAsync(cancellationToken) is { } line)
|
while (await reader.ReadLineAsync(cancellationToken) is { } line)
|
||||||
|
|||||||
Reference in New Issue
Block a user