Soenneker.Utils.RateLimiting.Executor 4.0.479

Prefix Reserved
dotnet add package Soenneker.Utils.RateLimiting.Executor --version 4.0.479
                    
NuGet\Install-Package Soenneker.Utils.RateLimiting.Executor -Version 4.0.479
                    
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.479" />
                    
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.479" />
                    
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.479
                    
#r "nuget: Soenneker.Utils.RateLimiting.Executor, 4.0.479"
                    
#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.479
                    
#: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.479
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Utils.RateLimiting.Executor&version=4.0.479
                    
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.479 180 1/13/2026
4.0.478 432 1/12/2026
4.0.477 317 1/8/2026
4.0.476 220 1/7/2026
4.0.474 198 1/7/2026
4.0.473 175 1/6/2026
4.0.472 170 1/6/2026
4.0.471 84 1/6/2026
4.0.470 181 1/6/2026
4.0.469 353 1/3/2026
4.0.468 78 1/3/2026
4.0.467 220 1/3/2026
4.0.466 80 1/2/2026
4.0.465 80 1/2/2026
4.0.464 99 1/2/2026
4.0.463 77 1/2/2026
4.0.462 83 1/2/2026
4.0.461 357 12/31/2025
4.0.460 214 12/31/2025
4.0.459 84 12/31/2025
4.0.458 326 12/22/2025
4.0.457 268 12/21/2025
4.0.456 149 12/21/2025
4.0.455 377 12/17/2025
4.0.454 420 12/15/2025
4.0.453 732 12/10/2025
4.0.452 809 11/21/2025
4.0.451 401 11/20/2025
4.0.450 393 11/20/2025
4.0.449 556 11/20/2025
4.0.448 835 11/11/2025
4.0.447 464 11/6/2025
4.0.446 291 11/6/2025
4.0.445 199 11/3/2025
4.0.444 420 10/30/2025
4.0.443 205 10/30/2025
4.0.442 200 10/30/2025
4.0.441 192 10/30/2025
4.0.440 301 10/29/2025
3.0.439 533 10/16/2025
3.0.438 758 9/9/2025
3.0.437 622 9/3/2025
3.0.436 193 9/3/2025
3.0.435 193 9/3/2025
3.0.434 181 9/3/2025
3.0.433 758 8/11/2025
3.0.432 302 8/11/2025
3.0.431 185 8/11/2025
3.0.430 169 8/11/2025
3.0.429 647 8/5/2025
3.0.428 931 7/9/2025
3.0.427 499 7/4/2025
3.0.426 336 7/3/2025
3.0.425 406 6/28/2025
3.0.424 229 6/27/2025
3.0.423 112 6/27/2025
3.0.422 114 6/27/2025
3.0.421 891 6/11/2025
3.0.420 607 6/3/2025
3.0.419 470 5/27/2025
3.0.418 201 5/27/2025
3.0.417 316 5/27/2025
3.0.416 697 5/23/2025
3.0.415 199 5/23/2025
3.0.414 216 5/22/2025
3.0.413 1,052 5/8/2025
3.0.412 218 5/7/2025
3.0.411 208 5/7/2025
3.0.410 640 5/5/2025
3.0.409 350 5/5/2025
3.0.408 180 5/5/2025
3.0.407 291 5/5/2025
3.0.406 207 5/5/2025
3.0.405 995 4/8/2025
3.0.404 236 4/8/2025
3.0.403 199 4/8/2025
3.0.402 618 4/8/2025
3.0.401 249 4/8/2025
3.0.400 238 4/8/2025
3.0.399 268 4/8/2025
3.0.398 216 4/8/2025
3.0.397 743 4/7/2025
3.0.396 253 4/7/2025
3.0.395 285 4/7/2025
3.0.394 472 4/7/2025
3.0.393 240 4/7/2025
3.0.392 240 4/7/2025
3.0.391 222 4/6/2025
3.0.390 232 4/6/2025
3.0.389 198 4/6/2025
3.0.388 192 4/6/2025
3.0.387 168 4/6/2025
3.0.386 169 4/6/2025
3.0.385 160 4/6/2025
3.0.384 167 4/6/2025
3.0.383 154 4/5/2025
3.0.382 152 4/5/2025
3.0.381 117 4/5/2025
3.0.380 159 4/5/2025
3.0.379 148 4/5/2025
3.0.378 136 4/5/2025
3.0.377 130 4/5/2025
3.0.376 169 4/4/2025
3.0.375 178 4/4/2025
3.0.374 2,121 4/3/2025
3.0.373 400 4/1/2025
3.0.372 285 4/1/2025
3.0.371 334 4/1/2025
3.0.370 293 3/31/2025
3.0.369 192 3/31/2025
3.0.368 337 3/31/2025
3.0.367 455 3/31/2025
3.0.366 290 3/29/2025
3.0.365 138 3/29/2025
3.0.364 195 3/29/2025
3.0.363 872 3/25/2025
3.0.362 575 3/25/2025
3.0.361 510 3/21/2025
3.0.360 242 3/21/2025
3.0.359 643 3/18/2025
3.0.358 370 3/18/2025
3.0.357 380 3/15/2025
3.0.356 110 3/15/2025
3.0.355 639 3/12/2025
3.0.354 265 3/12/2025
3.0.353 361 3/12/2025
3.0.352 242 3/11/2025
3.0.351 488 3/11/2025
3.0.350 327 3/11/2025
3.0.349 208 3/11/2025
3.0.348 652 3/11/2025
3.0.347 541 3/7/2025
3.0.346 484 3/7/2025
3.0.345 469 3/2/2025
3.0.344 236 3/2/2025
3.0.343 262 3/2/2025
3.0.342 161 3/2/2025
3.0.341 168 3/2/2025
3.0.340 347 3/2/2025
3.0.339 358 3/1/2025
3.0.338 167 3/1/2025
3.0.337 146 3/1/2025
3.0.336 686 3/1/2025
3.0.335 205 3/1/2025
3.0.334 142 3/1/2025
3.0.333 296 3/1/2025
3.0.332 157 3/1/2025
3.0.331 134 3/1/2025
3.0.330 507 2/25/2025
3.0.329 239 2/25/2025
3.0.328 289 2/25/2025
3.0.327 348 2/25/2025
3.0.326 243 2/25/2025
3.0.325 613 2/23/2025
3.0.324 245 2/23/2025
3.0.323 152 2/22/2025
3.0.322 587 2/22/2025
3.0.321 306 2/22/2025
3.0.320 208 2/22/2025
3.0.319 331 2/22/2025
3.0.318 160 2/21/2025
3.0.317 352 2/21/2025
3.0.316 402 2/21/2025
3.0.315 508 2/19/2025
3.0.314 215 2/19/2025
3.0.313 217 2/19/2025
3.0.312 161 2/18/2025
3.0.311 488 2/18/2025
3.0.310 272 2/18/2025
3.0.309 167 2/18/2025
3.0.308 697 2/14/2025
3.0.307 158 2/14/2025
3.0.306 295 2/13/2025
3.0.305 624 2/12/2025
3.0.304 216 2/12/2025
3.0.303 289 2/12/2025
3.0.302 327 2/11/2025
3.0.301 283 2/11/2025
3.0.300 512 2/11/2025
3.0.299 416 2/11/2025
3.0.298 166 2/11/2025
3.0.297 319 2/11/2025
3.0.296 307 2/10/2025
3.0.295 238 2/10/2025
3.0.294 321 2/10/2025
3.0.293 163 2/10/2025
3.0.292 148 2/10/2025
3.0.291 630 2/9/2025
3.0.290 184 2/8/2025
3.0.289 157 2/8/2025
3.0.288 142 2/8/2025
3.0.287 171 2/8/2025
3.0.286 515 2/8/2025
3.0.285 191 2/7/2025
3.0.284 229 2/7/2025
3.0.283 398 2/7/2025
3.0.282 138 2/7/2025
3.0.281 156 2/7/2025
3.0.280 149 2/7/2025
3.0.279 218 2/7/2025
3.0.278 148 2/7/2025
3.0.277 164 2/7/2025
3.0.276 618 2/6/2025
3.0.275 408 2/5/2025
3.0.274 250 2/5/2025
3.0.273 154 2/5/2025
3.0.272 189 2/5/2025
3.0.271 410 2/5/2025
3.0.270 169 2/5/2025
3.0.269 141 2/5/2025
3.0.268 814 1/28/2025
3.0.267 170 1/28/2025
3.0.266 159 1/28/2025
3.0.265 609 1/27/2025
3.0.264 189 1/27/2025
3.0.263 143 1/27/2025
3.0.262 149 1/27/2025
3.0.261 261 1/27/2025
3.0.260 173 1/27/2025
3.0.259 469 1/26/2025
3.0.258 175 1/26/2025
3.0.257 181 1/26/2025
3.0.256 137 1/26/2025
3.0.255 295 1/25/2025
3.0.254 358 1/25/2025
3.0.253 143 1/25/2025
3.0.252 158 1/25/2025
3.0.251 148 1/25/2025
3.0.250 334 1/25/2025
3.0.249 701 1/24/2025
3.0.248 230 1/24/2025
3.0.247 363 1/24/2025
3.0.246 289 1/24/2025
3.0.245 456 1/24/2025
3.0.244 350 1/23/2025
3.0.243 452 1/21/2025
3.0.242 161 1/21/2025
3.0.241 296 1/21/2025
3.0.240 167 1/21/2025
3.0.239 171 1/21/2025
3.0.238 492 1/21/2025
3.0.237 145 1/21/2025
3.0.236 141 1/21/2025
3.0.235 149 1/21/2025
3.0.234 151 1/21/2025
3.0.233 134 1/20/2025
3.0.232 163 1/20/2025
3.0.231 1,018 1/20/2025
3.0.230 142 1/20/2025
3.0.229 150 1/20/2025
3.0.228 402 1/20/2025
3.0.227 3,443 1/14/2025
3.0.226 129 1/14/2025
3.0.225 135 1/14/2025
3.0.224 285 1/14/2025
3.0.223 380 1/13/2025
3.0.222 342 1/13/2025
3.0.221 235 1/13/2025
3.0.220 142 1/13/2025
3.0.219 148 1/13/2025
3.0.218 422 1/12/2025
3.0.217 290 1/11/2025
3.0.216 247 1/11/2025
3.0.215 264 1/11/2025
3.0.214 168 1/11/2025
3.0.213 236 1/10/2025
3.0.212 162 1/10/2025
3.0.211 141 1/10/2025
3.0.210 162 1/10/2025
3.0.209 446 1/10/2025
3.0.208 171 1/10/2025
3.0.207 173 1/10/2025
3.0.206 904 1/3/2025
3.0.205 181 1/3/2025
3.0.204 258 1/3/2025
3.0.203 204 1/3/2025
3.0.202 344 1/2/2025
3.0.201 164 1/2/2025
3.0.200 162 1/2/2025
3.0.199 299 1/2/2025
3.0.198 165 1/2/2025
3.0.197 156 1/2/2025
3.0.196 676 1/1/2025
3.0.195 311 1/1/2025
3.0.194 171 1/1/2025
3.0.193 193 1/1/2025
3.0.192 352 1/1/2025
3.0.191 165 1/1/2025
3.0.190 166 1/1/2025
3.0.189 179 12/31/2024
3.0.188 164 12/31/2024
3.0.187 148 12/31/2024
3.0.186 169 12/31/2024
3.0.185 179 12/31/2024
3.0.184 252 12/31/2024
3.0.183 175 12/31/2024
3.0.182 696 12/31/2024
3.0.181 170 12/31/2024
3.0.180 437 12/31/2024
3.0.179 274 12/31/2024
3.0.178 159 12/31/2024
3.0.177 170 12/31/2024
3.0.176 161 12/31/2024
3.0.175 150 12/31/2024
3.0.174 185 12/30/2024
3.0.173 622 12/28/2024
3.0.172 183 12/28/2024
3.0.171 271 12/27/2024
3.0.170 151 12/27/2024
3.0.169 761 12/24/2024
3.0.168 346 12/24/2024
3.0.167 211 12/24/2024
3.0.166 147 12/24/2024
3.0.165 271 12/24/2024
3.0.164 126 12/24/2024
3.0.163 321 12/24/2024
3.0.162 126 12/24/2024
3.0.161 218 12/24/2024
3.0.160 172 12/23/2024
3.0.159 250 12/23/2024
3.0.158 294 12/23/2024
3.0.157 167 12/23/2024
3.0.156 472 12/23/2024
3.0.155 176 12/23/2024
3.0.154 455 12/22/2024
3.0.153 144 12/22/2024
3.0.152 164 12/22/2024
3.0.151 342 12/22/2024
3.0.150 157 12/22/2024
3.0.149 164 12/22/2024
3.0.148 159 12/22/2024
3.0.147 475 12/22/2024
3.0.146 151 12/22/2024
3.0.145 169 12/22/2024
3.0.144 178 12/22/2024
3.0.143 458 12/21/2024
3.0.142 157 12/21/2024
3.0.141 164 12/21/2024
3.0.140 159 12/21/2024
3.0.139 160 12/21/2024
3.0.138 170 12/21/2024
3.0.137 139 12/21/2024
3.0.136 164 12/21/2024
3.0.135 477 12/21/2024
3.0.134 295 12/21/2024
3.0.133 156 12/21/2024
3.0.132 157 12/21/2024
3.0.131 158 12/21/2024
3.0.130 408 12/21/2024
3.0.129 172 12/21/2024
3.0.128 236 12/20/2024
3.0.127 161 12/20/2024
3.0.126 296 12/20/2024
3.0.125 162 12/20/2024
3.0.124 330 12/20/2024
3.0.123 306 12/20/2024
3.0.122 183 12/20/2024
3.0.121 296 12/20/2024
3.0.120 334 12/19/2024
3.0.119 303 12/19/2024
3.0.118 156 12/19/2024
3.0.117 256 12/19/2024
3.0.116 146 12/18/2024
3.0.115 246 12/18/2024
3.0.114 338 12/17/2024
3.0.113 198 12/17/2024
3.0.112 145 12/17/2024
3.0.111 375 12/16/2024
3.0.110 479 12/10/2024
3.0.109 192 12/10/2024
3.0.108 291 12/10/2024
3.0.107 160 12/9/2024
3.0.106 285 12/9/2024
3.0.105 377 12/9/2024
3.0.104 154 12/9/2024
3.0.103 515 12/7/2024
3.0.102 201 12/6/2024
3.0.101 189 12/6/2024
3.0.100 191 12/6/2024
3.0.99 197 12/6/2024
3.0.97 233 12/6/2024
3.0.96 202 12/6/2024
3.0.95 164 12/6/2024
3.0.94 165 12/6/2024
3.0.93 162 12/6/2024
3.0.92 158 12/6/2024
3.0.91 218 12/6/2024
3.0.90 182 12/5/2024
3.0.89 218 12/5/2024
3.0.88 1,142 12/5/2024
3.0.87 237 12/5/2024
3.0.86 219 12/5/2024
3.0.85 316 12/5/2024
3.0.84 207 12/4/2024
3.0.83 246 12/4/2024
3.0.82 320 12/4/2024
3.0.81 325 12/4/2024
3.0.80 270 12/4/2024
3.0.79 164 12/3/2024
3.0.78 333 12/3/2024
3.0.77 325 12/3/2024
3.0.76 273 12/3/2024
3.0.75 138 12/3/2024
3.0.74 244 12/3/2024
3.0.73 152 12/3/2024
3.0.72 618 12/2/2024
3.0.71 257 12/2/2024
3.0.70 261 12/2/2024
3.0.69 162 12/2/2024
3.0.68 285 12/2/2024
3.0.67 393 12/1/2024
3.0.66 173 12/1/2024
3.0.65 442 12/1/2024
3.0.64 222 12/1/2024
3.0.63 352 11/29/2024
3.0.62 308 11/29/2024
3.0.61 454 11/21/2024
3.0.60 190 11/21/2024
3.0.59 423 11/20/2024
3.0.58 150 11/20/2024
3.0.57 192 11/20/2024
3.0.56 167 11/20/2024
3.0.55 158 11/20/2024
3.0.54 194 11/20/2024
3.0.53 171 11/19/2024
3.0.52 146 11/19/2024
3.0.51 155 11/19/2024
3.0.50 584 11/19/2024
3.0.49 149 11/19/2024
3.0.48 509 11/19/2024
3.0.47 141 11/19/2024
3.0.46 149 11/19/2024
3.0.45 523 11/15/2024
3.0.44 227 11/14/2024
3.0.43 178 11/14/2024
3.0.42 161 11/14/2024
3.0.41 254 11/14/2024
3.0.40 169 11/14/2024
3.0.39 382 11/14/2024
3.0.38 534 11/14/2024
3.0.37 282 11/14/2024
3.0.36 164 11/14/2024
3.0.35 147 11/14/2024
3.0.34 239 11/14/2024
3.0.33 170 11/14/2024
3.0.32 335 11/14/2024
2.1.31 497 11/13/2024
2.1.30 304 11/13/2024
2.1.29 416 11/13/2024
2.1.28 245 11/12/2024
2.1.27 135 11/12/2024
2.1.26 887 11/9/2024
2.1.25 306 11/9/2024
2.1.24 590 11/8/2024
2.1.23 195 11/8/2024
2.1.22 151 11/8/2024
2.1.21 465 11/8/2024
2.1.20 367 11/8/2024
2.1.19 456 11/6/2024
2.1.18 540 11/1/2024
2.1.17 165 11/1/2024
2.1.16 558 11/1/2024
2.1.14 161 10/29/2024
2.1.13 402 10/29/2024
2.1.12 235 10/29/2024
2.1.11 685 10/29/2024
2.1.10 415 10/28/2024
2.1.9 148 10/28/2024
2.1.8 213 10/28/2024
2.1.7 493 10/26/2024
2.1.6 212 10/26/2024
2.1.5 433 10/22/2024
2.1.4 185 10/22/2024
2.1.3 165 10/22/2024
2.1.2 176 10/22/2024
2.1.1 216 10/22/2024