-
-
Notifications
You must be signed in to change notification settings - Fork 806
Open
Description
The startBroadcast method currently batches requests in groups of 50 using await($promises). However, the delay($this->delay) call is located inside the async closure.
MadelineProto/src/Broadcast/InternalState.php
Line 189 in 5b0d9d3
| if ($this->delay !== null) { |
When the loop executes, 50 async tasks are scheduled almost immediately. If $this->delay is set (e.g., 5 seconds), all 50 tasks sleep concurrently and then wake up at the exact same time to send their messages.
zumoshi and hassanghalami
Metadata
Metadata
Assignees
Labels
No labels