Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CancellationToken support to Async methods #146

Merged
merged 1 commit into from
Jun 13, 2021
Merged

Add CancellationToken support to Async methods #146

merged 1 commit into from
Jun 13, 2021

Conversation

Kim-SSi
Copy link
Contributor

@Kim-SSi Kim-SSi commented May 31, 2021

No description provided.

@Kim-SSi
Copy link
Contributor Author

Kim-SSi commented Jun 1, 2021

The reason for this change is that I am using @implements IDisposable in components and want to be able to cancel the Async calls.

    private readonly CancellationTokenSource TokenSource = newCancellationTokenSource();

    public void Dispose()
    {
        TokenSource.Cancel();
    }

Copy link
Member

@chrissainty chrissainty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the delay getting to this @Kim-SSi. Everything looks good here, I'll get it merged.

@chrissainty chrissainty added the Maintenance General maintenance label Jun 13, 2021
@chrissainty chrissainty merged commit 5b9947f into Blazored:main Jun 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance General maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants