mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-04 03:23:05 -06: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:
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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue