Skip to content
This repository was archived by the owner on Jul 25, 2026. It is now read-only.
This repository was archived by the owner on Jul 25, 2026. It is now read-only.

fix: event bus EmitAsync should remain non-blocking #109

Description

@snickler

$## Describe the Bug\n\nEventBusTests.EmitAsync_IsNonBlocking fails because handlers begin executing before EmitAsync returns, which violates the non-blocking contract.\n\n## To Reproduce\n\n1. Run dotnet test Squad.SDK.NET.slnx -c Release\n2. Observe Squad.SDK.NET.Tests.EventBusTests.EmitAsync_IsNonBlocking\n3. See the assertion Handler should not have started yet fail\n\n## Expected Behavior\n\nEmitAsync should enqueue or dispatch work without starting handlers synchronously before the method returns.\n\n## Environment\n\n- OS: Linux\n- .NET Version: .NET 10\n- Squad.SDK.NET Version: current repo state\n\n## Additional Context\n\nValidated during a full test run: 763 passed, 1 failed. This is a real behavior regression, not an environment issue.\n

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggo:needs-researchNeeds investigationpriority:p1This sprintsquadSquad triage inbox — Lead will assign to a membersquad:drummerAssigned to Drummer (Tester & QA)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions