[3.4.0-map-sdk] wait to finish

This commit is contained in:
zhongchao
2023-08-25 10:16:15 +08:00
parent db342e0bfc
commit 7865da2347
40 changed files with 404 additions and 648 deletions

View File

@@ -11,6 +11,7 @@ class MogoMap private constructor() {
const val DEFAULT = "Default"
@JvmStatic
val mapInstance by lazy(LazyThreadSafetyMode.SYNCHRONIZED) {
MogoMap()
}
@@ -19,7 +20,7 @@ class MogoMap private constructor() {
private val mapCache = ConcurrentHashMap<String, IMogoMap>()
/**
* 缓存多实例对象
* 缓存多实例对象instanceTag未指定默认给予DEFAULT
*/
fun initInstance(map: IMogoMap, instanceTag: String = DEFAULT) {
if (mapCache.contains(instanceTag)) {