Skip to content

Conversation

@Nicell
Copy link
Member

@Nicell Nicell commented Nov 21, 2025

Problem

For N promises that are finalized in the same frame, N task.defers are created to close the threads. This can create a huge amount of events hitting a maximum limit in engine.

Solution

Combine all thread closes into a single deferred callback. This reduces the N task.defers to 1.

@Nicell Nicell marked this pull request as ready for review November 21, 2025 22:44
@Nicell Nicell changed the title Fix max deferred event queue size Fix finalize hitting max deferred event queue size limit Nov 21, 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.

1 participant