Skip to content

Source generators should check for cancellation more often #703

@Sergio0694

Description

@Sergio0694

Overview

Currently, the MVVM Toolkit source generators are propagating the cancellation token in each callback to all calls that need one, but they're not checking for cancellation themselves that much. This can increase overhead when concurrent invocations are triggered, as previous runs of the generators will take longer before they get to a point where they can detect they've been cancelled. We should update them to add more cancellation checks in places that make sense.

Metadata

Metadata

Assignees

No one assigned

    Labels

    analyzer 👓A new analyzer being implemented or updatedmvvm-toolkit 🧰Issues/PRs for the MVVM Toolkitoptimization ☄Performance or memory usage improvements

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions