Skip to content

use asynchronous with RateLimiter#487

Merged
BifrostTitan merged 2 commits intobmresearch:masterfrom
tqk2811:master
Mar 19, 2025
Merged

use asynchronous with RateLimiter#487
BifrostTitan merged 2 commits intobmresearch:masterfrom
tqk2811:master

Conversation

@tqk2811
Copy link
Contributor

@tqk2811 tqk2811 commented Mar 19, 2025

Status Type ⚠️ Core Change Issue
Ready Refactor No Link

Problem

Thread.Sleep is terrible for Task

Solution

Change it to asynchronous with Task.Delay

Before & After Screenshots

BEFORE:
image
image
image

AFTER:
image
image
image

@tqk2811 tqk2811 changed the title use asynchronous with RateLimiter, fix #486 use asynchronous with RateLimiter Mar 19, 2025
@BifrostTitan
Copy link
Contributor

Yeah should be using TAP and not blocking the thread using sleep.

@BifrostTitan BifrostTitan merged commit 99504b6 into bmresearch:master Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants