Created
December 23, 2019 15:21
-
-
Save 0x414c49/64845237159347687ca43e9c5b54647a to your computer and use it in GitHub Desktop.
Memory Leak
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Foo | |
{ | |
private JobQueue _jobQueue; | |
private Guid _uniqeId; | |
public Foo(JobQueue jobQueue) | |
{ | |
_jobQueue = jobQueue; | |
} | |
public void Foo() | |
{ | |
_jobQueue.EnqueueJob(() => | |
{ | |
Logger.Log($"Executing job {_uniqeId}"); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment