Keeping a singleton unfrozen, and accessing it fro...
# touchlab-tools
k
Keeping a singleton unfrozen, and accessing it from multiple threads, will be quite difficult. There are basically 2 options. You can have the equivalent of “thread local” rather than “singleton”, and you can only ever get it from one thread. There could be some kind of “instance count” that is global and limited to 1, thereby being an effective singleton, but I’d really like to get my head around what the use case is here.