RateLimiter
RateLimiter copied to clipboard
How to use with synchronous method
Hi Can someone share me how to use RateLimiter with synchronous method?
In the synchronous method I am using the way like that:
Logfile.Info("Start RateLimit"); Task.Run(async () => { await timeConstraint; }).Wait(); Logfile.Info("End RateLimit");
But it get deadlocked when calling this synchronous method from multiple thread
Thank you