[3.4.0-map-sdk] wait to finish
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user