Don't raise events in separated threads #9
Labels
Big changes
Some big changes have been applied
enhancement
New feature or request
GraphicElement
this is related to graphic elements
Milestone
Using
Task.Run
is not acceptable everywhereSo what's wrong with this code?
This will cause some problems in the future, such as hug memory leak.
So what to do?
I think something like this will be okay:
This way, we won't create new threads over and over.
The text was updated successfully, but these errors were encountered: