Soenneker.Utils.RateLimiting.Executor 4.0.454

Prefix Reserved
dotnet add package Soenneker.Utils.RateLimiting.Executor --version 4.0.454
                    
NuGet\Install-Package Soenneker.Utils.RateLimiting.Executor -Version 4.0.454
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Utils.RateLimiting.Executor" Version="4.0.454" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Utils.RateLimiting.Executor" Version="4.0.454" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Utils.RateLimiting.Executor" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Utils.RateLimiting.Executor --version 4.0.454
                    
#r "nuget: Soenneker.Utils.RateLimiting.Executor, 4.0.454"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Utils.RateLimiting.Executor@4.0.454
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Utils.RateLimiting.Executor&version=4.0.454
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Utils.RateLimiting.Executor&version=4.0.454
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Utils.RateLimiting.Executor

A thread-safe utility designed to manage the rate at which tasks are executed, ensuring they are not run more frequently than a specified interval.

RateLimitingExecutor is ideal for interacting with rate-limited APIs or throttling the execution of resource-intensive tasks.

Sequential Execution

Tasks, ValueTasks, and Actions are executed one at a time. If the defined interval between executions has passed, the task runs immediately; otherwise, it waits until the interval elapses before proceeding.

⚠️ Important Notes:

  • This is not a background queue processor. Each method awaits the result of the asynchronous operation before continuing.

  • Asynchronous methods will not block the calling thread, but synchronous methods will block execution until it completes.

Want to use this with dependency injection?

Check out the singleton factory implementation: Soenneker.Utils.RateLimiting.Factory

Installation

dotnet add package Soenneker.Utils.RateLimiting.Executor

Example: Executing a Loop of Tasks with Rate Limiting

Below is an example demonstrating how to use the RateLimitingExecutor to execute a series of tasks while maintaining a rate limit.

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Soenneker.Utils.RateLimiting.Executor;

public class Program
{
    public static async Task Main(string[] args)
    {
        var rateLimitingExecutor = new RateLimitingExecutor(TimeSpan.FromSeconds(2));

        for (int i = 0; i < 5; i++)
        {
            await rateLimitingExecutor.Execute(async ct =>
            {
                Console.WriteLine($"Executing Task {i + 1} at {DateTime.Now:HH:mm:ss}");
                await Task.Delay(100); // Simulate some work
            });
        }
    }
}

Console Output

Executing Task 1 at 14:00:00
Executing Task 2 at 14:00:02
Executing Task 3 at 14:00:04
Executing Task 4 at 14:00:06
Executing Task 5 at 14:00:08
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Utils.RateLimiting.Executor:

Package Downloads
Soenneker.Utils.RateLimiting.Factory

An async thread-safe singleton dictionary for Soenneker.Utils.RateLimiting.Executors, designed to manage the rate at which tasks are executed.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.454 61 12/15/2025
4.0.453 549 12/10/2025
4.0.452 745 11/21/2025
4.0.451 387 11/20/2025
4.0.450 382 11/20/2025
4.0.449 542 11/20/2025
4.0.448 771 11/11/2025
4.0.447 455 11/6/2025
4.0.446 282 11/6/2025
4.0.445 184 11/3/2025
4.0.444 406 10/30/2025
4.0.443 193 10/30/2025
4.0.442 192 10/30/2025
4.0.441 179 10/30/2025
4.0.440 290 10/29/2025
3.0.439 523 10/16/2025
3.0.438 750 9/9/2025
3.0.437 612 9/3/2025
3.0.436 182 9/3/2025
3.0.435 183 9/3/2025
3.0.434 172 9/3/2025
3.0.433 750 8/11/2025
3.0.432 289 8/11/2025
3.0.431 174 8/11/2025
3.0.430 160 8/11/2025
3.0.429 637 8/5/2025
3.0.428 922 7/9/2025
3.0.427 491 7/4/2025
3.0.426 328 7/3/2025
3.0.425 398 6/28/2025
3.0.424 218 6/27/2025
3.0.423 101 6/27/2025
3.0.422 105 6/27/2025
3.0.421 885 6/11/2025
3.0.420 599 6/3/2025
3.0.419 460 5/27/2025
3.0.418 190 5/27/2025
3.0.417 308 5/27/2025
3.0.416 685 5/23/2025
3.0.415 187 5/23/2025
3.0.414 207 5/22/2025
3.0.413 1,045 5/8/2025
3.0.412 208 5/7/2025
3.0.411 197 5/7/2025
3.0.410 627 5/5/2025
3.0.409 344 5/5/2025
3.0.408 174 5/5/2025
3.0.407 281 5/5/2025
3.0.406 200 5/5/2025
3.0.405 985 4/8/2025
3.0.404 225 4/8/2025
3.0.403 192 4/8/2025
3.0.402 606 4/8/2025
3.0.401 239 4/8/2025
3.0.400 226 4/8/2025
3.0.399 253 4/8/2025
3.0.398 207 4/8/2025
3.0.397 734 4/7/2025
3.0.396 242 4/7/2025
3.0.395 279 4/7/2025
3.0.394 459 4/7/2025
3.0.393 232 4/7/2025
3.0.392 232 4/7/2025
3.0.391 209 4/6/2025
3.0.390 221 4/6/2025
3.0.389 190 4/6/2025
3.0.388 183 4/6/2025
3.0.387 161 4/6/2025
3.0.386 160 4/6/2025
3.0.385 151 4/6/2025
3.0.384 157 4/6/2025
3.0.383 143 4/5/2025
3.0.382 144 4/5/2025
3.0.381 106 4/5/2025
3.0.380 144 4/5/2025
3.0.379 140 4/5/2025
3.0.378 126 4/5/2025
3.0.377 118 4/5/2025
3.0.376 164 4/4/2025
3.0.375 164 4/4/2025
3.0.374 2,110 4/3/2025
3.0.373 391 4/1/2025
3.0.372 277 4/1/2025
3.0.371 325 4/1/2025
3.0.370 281 3/31/2025
3.0.369 183 3/31/2025
3.0.368 326 3/31/2025
3.0.367 446 3/31/2025
3.0.366 280 3/29/2025
3.0.365 131 3/29/2025
3.0.364 185 3/29/2025
3.0.363 859 3/25/2025
3.0.362 564 3/25/2025
3.0.361 504 3/21/2025
3.0.360 232 3/21/2025
3.0.359 634 3/18/2025
3.0.358 361 3/18/2025
3.0.357 373 3/15/2025
3.0.356 100 3/15/2025
3.0.355 631 3/12/2025
3.0.354 249 3/12/2025
3.0.353 354 3/12/2025
3.0.352 231 3/11/2025
3.0.351 473 3/11/2025
3.0.350 314 3/11/2025
3.0.349 196 3/11/2025
3.0.348 640 3/11/2025
3.0.347 532 3/7/2025
3.0.346 475 3/7/2025
3.0.345 460 3/2/2025
3.0.344 229 3/2/2025
3.0.343 245 3/2/2025
3.0.342 149 3/2/2025
3.0.341 158 3/2/2025
3.0.340 334 3/2/2025
3.0.339 350 3/1/2025
3.0.338 155 3/1/2025
3.0.337 135 3/1/2025
3.0.336 675 3/1/2025
3.0.335 198 3/1/2025
3.0.334 132 3/1/2025
3.0.333 288 3/1/2025
3.0.332 148 3/1/2025
3.0.331 124 3/1/2025
3.0.330 497 2/25/2025
3.0.329 228 2/25/2025
3.0.328 281 2/25/2025
3.0.327 336 2/25/2025
3.0.326 229 2/25/2025
3.0.325 604 2/23/2025
3.0.324 239 2/23/2025
3.0.323 142 2/22/2025
3.0.322 575 2/22/2025
3.0.321 300 2/22/2025
3.0.320 201 2/22/2025
3.0.319 318 2/22/2025
3.0.318 147 2/21/2025
3.0.317 343 2/21/2025
3.0.316 395 2/21/2025
3.0.315 495 2/19/2025
3.0.314 205 2/19/2025
3.0.313 201 2/19/2025
3.0.312 145 2/18/2025
3.0.311 477 2/18/2025
3.0.310 262 2/18/2025
3.0.309 154 2/18/2025
3.0.308 691 2/14/2025
3.0.307 144 2/14/2025
3.0.306 280 2/13/2025
3.0.305 616 2/12/2025
3.0.304 199 2/12/2025
3.0.303 279 2/12/2025
3.0.302 313 2/11/2025
3.0.301 275 2/11/2025
3.0.300 502 2/11/2025
3.0.299 406 2/11/2025
3.0.298 155 2/11/2025
3.0.297 309 2/11/2025
3.0.296 294 2/10/2025
3.0.295 224 2/10/2025
3.0.294 312 2/10/2025
3.0.293 149 2/10/2025
3.0.292 138 2/10/2025
3.0.291 620 2/9/2025
3.0.290 171 2/8/2025
3.0.289 146 2/8/2025
3.0.288 135 2/8/2025
3.0.287 159 2/8/2025
3.0.286 509 2/8/2025
3.0.285 184 2/7/2025
3.0.284 217 2/7/2025
3.0.283 388 2/7/2025
3.0.282 127 2/7/2025
3.0.281 152 2/7/2025
3.0.280 137 2/7/2025
3.0.279 211 2/7/2025
3.0.278 140 2/7/2025
3.0.277 155 2/7/2025
3.0.276 603 2/6/2025
3.0.275 395 2/5/2025
3.0.274 240 2/5/2025
3.0.273 145 2/5/2025
3.0.272 178 2/5/2025
3.0.271 398 2/5/2025
3.0.270 156 2/5/2025
3.0.269 128 2/5/2025
3.0.268 806 1/28/2025
3.0.267 163 1/28/2025
3.0.266 149 1/28/2025
3.0.265 598 1/27/2025
3.0.264 178 1/27/2025
3.0.263 132 1/27/2025
3.0.262 136 1/27/2025
3.0.261 244 1/27/2025
3.0.260 164 1/27/2025
3.0.259 459 1/26/2025
3.0.258 162 1/26/2025
3.0.257 171 1/26/2025
3.0.256 122 1/26/2025
3.0.255 285 1/25/2025
3.0.254 348 1/25/2025
3.0.253 135 1/25/2025
3.0.252 146 1/25/2025
3.0.251 137 1/25/2025
3.0.250 321 1/25/2025
3.0.249 688 1/24/2025
3.0.248 218 1/24/2025
3.0.247 354 1/24/2025
3.0.246 278 1/24/2025
3.0.245 443 1/24/2025
3.0.244 338 1/23/2025
3.0.243 444 1/21/2025
3.0.242 152 1/21/2025
3.0.241 286 1/21/2025
3.0.240 157 1/21/2025
3.0.239 161 1/21/2025
3.0.238 479 1/21/2025
3.0.237 132 1/21/2025
3.0.236 130 1/21/2025
3.0.235 136 1/21/2025
3.0.234 139 1/21/2025
3.0.233 125 1/20/2025
3.0.232 151 1/20/2025
3.0.231 1,011 1/20/2025
3.0.230 133 1/20/2025
3.0.229 139 1/20/2025
3.0.228 389 1/20/2025
3.0.227 3,431 1/14/2025
3.0.226 118 1/14/2025
3.0.225 126 1/14/2025
3.0.224 271 1/14/2025
3.0.223 365 1/13/2025
3.0.222 331 1/13/2025
3.0.221 227 1/13/2025
3.0.220 131 1/13/2025
3.0.219 136 1/13/2025
3.0.218 413 1/12/2025
3.0.217 283 1/11/2025
3.0.216 235 1/11/2025
3.0.215 251 1/11/2025
3.0.214 153 1/11/2025
3.0.213 223 1/10/2025
3.0.212 149 1/10/2025
3.0.211 132 1/10/2025
3.0.210 154 1/10/2025
3.0.209 437 1/10/2025
3.0.208 160 1/10/2025
3.0.207 161 1/10/2025
3.0.206 892 1/3/2025
3.0.205 176 1/3/2025
3.0.204 248 1/3/2025
3.0.203 189 1/3/2025
3.0.202 334 1/2/2025
3.0.201 152 1/2/2025
3.0.200 150 1/2/2025
3.0.199 291 1/2/2025
3.0.198 153 1/2/2025
3.0.197 144 1/2/2025
3.0.196 668 1/1/2025
3.0.195 298 1/1/2025
3.0.194 163 1/1/2025
3.0.193 188 1/1/2025
3.0.192 339 1/1/2025
3.0.191 150 1/1/2025
3.0.190 155 1/1/2025
3.0.189 170 12/31/2024
3.0.188 149 12/31/2024
3.0.187 138 12/31/2024
3.0.186 162 12/31/2024
3.0.185 172 12/31/2024
3.0.184 242 12/31/2024
3.0.183 162 12/31/2024
3.0.182 685 12/31/2024
3.0.181 158 12/31/2024
3.0.180 427 12/31/2024
3.0.179 261 12/31/2024
3.0.178 148 12/31/2024
3.0.177 163 12/31/2024
3.0.176 149 12/31/2024
3.0.175 139 12/31/2024
3.0.174 178 12/30/2024
3.0.173 612 12/28/2024
3.0.172 175 12/28/2024
3.0.171 259 12/27/2024
3.0.170 139 12/27/2024
3.0.169 748 12/24/2024
3.0.168 333 12/24/2024
3.0.167 202 12/24/2024
3.0.166 138 12/24/2024
3.0.165 265 12/24/2024
3.0.164 117 12/24/2024
3.0.163 310 12/24/2024
3.0.162 114 12/24/2024
3.0.161 209 12/24/2024
3.0.160 159 12/23/2024
3.0.159 236 12/23/2024
3.0.158 291 12/23/2024
3.0.157 153 12/23/2024
3.0.156 461 12/23/2024
3.0.155 166 12/23/2024
3.0.154 444 12/22/2024
3.0.153 131 12/22/2024
3.0.152 154 12/22/2024
3.0.151 335 12/22/2024
3.0.150 146 12/22/2024
3.0.149 152 12/22/2024
3.0.148 150 12/22/2024
3.0.147 462 12/22/2024
3.0.146 134 12/22/2024
3.0.145 160 12/22/2024
3.0.144 168 12/22/2024
3.0.143 449 12/21/2024
3.0.142 148 12/21/2024
3.0.141 151 12/21/2024
3.0.140 150 12/21/2024
3.0.139 150 12/21/2024
3.0.138 159 12/21/2024
3.0.137 130 12/21/2024
3.0.136 153 12/21/2024
3.0.135 468 12/21/2024
3.0.134 288 12/21/2024
3.0.133 145 12/21/2024
3.0.132 147 12/21/2024
3.0.131 150 12/21/2024
3.0.130 396 12/21/2024
3.0.129 163 12/21/2024
3.0.128 222 12/20/2024
3.0.127 148 12/20/2024
3.0.126 287 12/20/2024
3.0.125 154 12/20/2024
3.0.124 316 12/20/2024
3.0.123 294 12/20/2024
3.0.122 171 12/20/2024
3.0.121 282 12/20/2024
3.0.120 326 12/19/2024
3.0.119 292 12/19/2024
3.0.118 146 12/19/2024
3.0.117 245 12/19/2024
3.0.116 139 12/18/2024
3.0.115 237 12/18/2024
3.0.114 328 12/17/2024
3.0.113 187 12/17/2024
3.0.112 133 12/17/2024
3.0.111 361 12/16/2024
3.0.110 470 12/10/2024
3.0.109 182 12/10/2024
3.0.108 276 12/10/2024
3.0.107 146 12/9/2024
3.0.106 280 12/9/2024
3.0.105 368 12/9/2024
3.0.104 146 12/9/2024
3.0.103 509 12/7/2024
3.0.102 194 12/6/2024
3.0.101 179 12/6/2024
3.0.100 178 12/6/2024
3.0.99 190 12/6/2024
3.0.97 223 12/6/2024
3.0.96 194 12/6/2024
3.0.95 157 12/6/2024
3.0.94 157 12/6/2024
3.0.93 153 12/6/2024
3.0.92 148 12/6/2024
3.0.91 209 12/6/2024
3.0.90 175 12/5/2024
3.0.89 210 12/5/2024
3.0.88 1,132 12/5/2024
3.0.87 231 12/5/2024
3.0.86 212 12/5/2024
3.0.85 305 12/5/2024
3.0.84 199 12/4/2024
3.0.83 239 12/4/2024
3.0.82 311 12/4/2024
3.0.81 317 12/4/2024
3.0.80 256 12/4/2024
3.0.79 154 12/3/2024
3.0.78 328 12/3/2024
3.0.77 313 12/3/2024
3.0.76 264 12/3/2024
3.0.75 138 12/3/2024
3.0.74 235 12/3/2024
3.0.73 146 12/3/2024
3.0.72 609 12/2/2024
3.0.71 246 12/2/2024
3.0.70 253 12/2/2024
3.0.69 155 12/2/2024
3.0.68 279 12/2/2024
3.0.67 380 12/1/2024
3.0.66 166 12/1/2024
3.0.65 432 12/1/2024
3.0.64 211 12/1/2024
3.0.63 342 11/29/2024
3.0.62 299 11/29/2024
3.0.61 448 11/21/2024
3.0.60 178 11/21/2024
3.0.59 417 11/20/2024
3.0.58 133 11/20/2024
3.0.57 185 11/20/2024
3.0.56 162 11/20/2024
3.0.55 149 11/20/2024
3.0.54 185 11/20/2024
3.0.53 160 11/19/2024
3.0.52 138 11/19/2024
3.0.51 143 11/19/2024
3.0.50 576 11/19/2024
3.0.49 140 11/19/2024
3.0.48 506 11/19/2024
3.0.47 131 11/19/2024
3.0.46 138 11/19/2024
3.0.45 513 11/15/2024
3.0.44 220 11/14/2024
3.0.43 170 11/14/2024
3.0.42 150 11/14/2024
3.0.41 239 11/14/2024
3.0.40 155 11/14/2024
3.0.39 374 11/14/2024
3.0.38 520 11/14/2024
3.0.37 269 11/14/2024
3.0.36 153 11/14/2024
3.0.35 136 11/14/2024
3.0.34 231 11/14/2024
3.0.33 160 11/14/2024
3.0.32 328 11/14/2024
2.1.31 483 11/13/2024
2.1.30 299 11/13/2024
2.1.29 408 11/13/2024
2.1.28 235 11/12/2024
2.1.27 129 11/12/2024
2.1.26 876 11/9/2024
2.1.25 292 11/9/2024
2.1.24 579 11/8/2024
2.1.23 184 11/8/2024
2.1.22 147 11/8/2024
2.1.21 457 11/8/2024
2.1.20 359 11/8/2024
2.1.19 449 11/6/2024
2.1.18 528 11/1/2024
2.1.17 155 11/1/2024
2.1.16 550 11/1/2024
2.1.14 150 10/29/2024
2.1.13 397 10/29/2024
2.1.12 220 10/29/2024
2.1.11 677 10/29/2024
2.1.10 406 10/28/2024
2.1.9 134 10/28/2024
2.1.8 201 10/28/2024
2.1.7 482 10/26/2024
2.1.6 202 10/26/2024
2.1.5 421 10/22/2024
2.1.4 166 10/22/2024
2.1.3 155 10/22/2024
2.1.2 168 10/22/2024
2.1.1 206 10/22/2024