Skip to content

Waiting operations and multi-threading #31

Description

@duracellko

This issue tracks discussion about architectural decisions about asynchronous operations and multi-threading.

Current status
This discussion was initiated by identification of following points during PR #27:

  1. Methods WaitForNextRender and DispatchAndAssertNoSynchronousErrors are blocking and not returning a Task object.
  2. Test code run in 2 threads. Test code starts in thread managed by test framework. Then every operation (e.g. rendering, mocked JS events) runs in Razor Dispatcher thread.

Open question 1
Shall in general waiting operations like WaitForNextRender and DispatchAndAssertNoSynchronousErrors be blocking? Or should they return Task object that can be awaited?

Open question 2
Should whole test run in synchronization context of Razor Dispatcher? Or is it desired to run tests in 2 synchronization contexts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    input neededWhen an issue requires input or suggestions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions