Have I in some way delete this Task or it is self-destroyed?
Task.Factory.StartNew(() => { DoSomeJob(); }, TaskCreationOptions.LongRunning);
or it is better to use it like
var t = Task.Factory.StartNew(() => { DoSomeJob(); }, TaskCreationOptions.LongRunning);
and somehow later delete/nullize t?
Thank you!
you do not need to delete it, it will be disposed eventually....
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With