Skip to content

Simplify DoEvents implementation and use for test state cleanup #25806

@sharwell

Description

@sharwell

Related comments:

The DispatcherExtensions.DoEvents and UseExportProviderAttribute.After methods went through several iterations that eventually led to a state of "reasonable reliability" for test cleanup. Two issues proved complex here:

  1. The message pump required for executing tasks dispatched to the main thread, on which the synchronous After method is executing
  2. The execution efficiency of looping while waiting for a test timeout to expire, which can impact the total test execution time

I am quite confident that the pair of methods can be simplified without any negative impact on usability/reliability, but am uncomfortable making ongoing large changes in the original review due to is size.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions