Class: sync<CT>
小于 1 分钟
Class: sync<CT>
obj_pool.sync
同步对象池
Type parameters
Name |
---|
CT |
Table of contents
Constructors
Accessors
Methods
Constructors
constructor
• new sync<CT
>(init_?
)
Type parameters
Name |
---|
CT |
Parameters
Name | Type |
---|---|
init_? | config <CT > |
Defined in
assets/@framework/mk_obj_pool.ts:205
Accessors
valid_b
• get
valid_b(): boolean
有效状态
Returns
boolean
Defined in
assets/@framework/mk_obj_pool.ts:214
Methods
put
▸ put(obj_
): void
导入对象
Parameters
Name | Type |
---|---|
obj_ | CT |
Returns
void
Defined in
assets/@framework/mk_obj_pool.ts:227
get
▸ get(): CT
获取对象
Returns
CT
Defined in
assets/@framework/mk_obj_pool.ts:246
clear
▸ clear(): void
清空数据
Returns
void
Defined in
assets/@framework/mk_obj_pool.ts:262
destroy
▸ destroy(): void
销毁对象池
Returns
void
Remarks
销毁后将无法 get/put