RestSharp by .NET Foundation and Contributors

<PackageReference Include="RestSharp" Version="110.1.1-alpha.0.5" />

.NET API 184,832 bytes

 AsyncHelpers

static class AsyncHelpers
public static void RunSync(Func<Task> task)

Executes a task synchronously on the calling thread by installing a temporary synchronization context that queues continuations

public static T RunSync<T>(Func<Task<T>> task)

Executes a task synchronously on the calling thread by installing a temporary synchronization context that queues continuations