AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="1.3.0" />

 EventLoopExtensions

public static class EventLoopExtensions
A set of useful extensions for the event loop.
public static void Enqueue(this IEventLoop loop, Action action, TaskPriority priority = 1)

Enqueues another action without considering the cancellation token.

public static Task<T> EnqueueAsync<T>(this IEventLoop loop, Func<CancellationToken, T> action, TaskPriority priority = 1)

Enqueues another function with respecting the async nature. Exceptions will be emitted respectively.