Skip to content

Commit

Permalink
Cancel background parser on dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
mhutch committed Sep 25, 2024
1 parent c03f37e commit 1f8e22d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Editor/Parsing/BackgroundParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public Task<TOutput> GetOrProcessAsync (TInput input, CancellationToken token)

protected virtual void Dispose (bool disposing)
{
currentOperation?.Cancel();
}

~BackgroundProcessor () => Dispose (false);
Expand Down

0 comments on commit 1f8e22d

Please sign in to comment.