3 ms·
The only other case I can think of is when the object represents a true hardware resource (e.g. a flash queue controller). Although even that doesn't technicall
by jamesaguilar 13y ago
The only other case I can think of is when the object represents a true hardware resource (e.g. a flash queue controller). Although even that doesn't technically need to be a singleton. Another case where I've used one is when I'm caching channels to other servers created by a factory function.