disposable Questions
1
Solved
I have ViewModel with disposable Set defined this way
class ViewModel {
private var disposables = Set<AnyCancellable>()
func sync() {
repo.syncObjects()
.handleEvents(receiveCancel...
Extortion asked 19/5, 2020 at 10:46
2
Is there anything standardized within the Scala library to support the disposable resource pattern?
I mean something similar to that supported by C# and .NET just to mention one.
For example does...
Branen asked 20/3, 2013 at 12:12
1
Solved
The Disposable pattern is one that is re-implemented on a per class basis. So, I was looking for a way to generalize it. The problem I ran into a few years ago is that, even if you implement it as ...
Wendeline asked 4/9, 2015 at 21:5
2
IDisposable pattern is expensive to implement. I've counted 17 lines of code before even starting to actually dispose resources.
Eric Lippert recently wrote a blog post bringing up an interesting ...
Cuthburt asked 3/9, 2015 at 10:48
2
Solved
We all know the System.IDisposable pattern. It's been described a zillion time, also here on StackOverflow:
link: Dispose() for cleaning up managed resources?
The Disposable patterns advises t...
Languish asked 29/7, 2015 at 14:29
6
Solved
Are there some advices about how I should deal with the IDisposable object sequences?
For example, I have a method that builds a IEnumerable<System.Drawing.Image> sequence and
at some point ...
Outthink asked 26/4, 2011 at 9:57
1
Solved
I just can't make out if the entity context is disposed in the usage flow when used in a using statement in a web application or a console application.
Thanks!
using System;
using System.Web;
na...
Arleen asked 28/7, 2011 at 19:20
6
Solved
I have the following code example:
public interface IRepository {
// Whatever
}
public class SampleRepository : IRepository {
// Implements 'Whatever'
}
public class NHibernateRepository : IRe...
Ultramundane asked 13/12, 2010 at 17:1
6
Solved
I've got a class named BackgroundWorker that has a thread constantly running. To turn this thread off, an instance variable named stop to needs to be true.
To make sure the thread is freed when t...
Foreandaft asked 29/9, 2008 at 22:28
3
Solved
I have a question, and I'm going to tag this subjective since that's what I think it evolves into, more of a discussion. I'm hoping for some good ideas or some thought-provokers. I apologize for th...
Closegrained asked 17/2, 2009 at 12:26
3
Solved
I am fascinated by the way the CLR and GC works (I'm working on expanding my knowledge on this by reading CLR via C#, Jon Skeet's books/posts, and more).
Anyway, what is the difference between say...
Teryn asked 22/2, 2009 at 0:26
1
© 2022 - 2024 — McMap. All rights reserved.