Skip to content

The workflow is executing in the wrong order #1683

@zglp

Description

@zglp

Expected Behavior

Execute the following code:
await context.WaitForExternalEventAsync<int>("my-event", TimeSpan.FromSeconds(5));
Should be throw TaskCanceledException If external event is received after 5 seconds.

Actual Behavior

Once the TimerFired event arrives in 5 seconds, it throws a TaskCanceledException.
Subsequently, when external event arrives, it resumes normal execution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions