architecture-components-samples icon indicating copy to clipboard operation
architecture-components-samples copied to clipboard

关于RoomDatabase单例模式Context被回收问题

Open 285298984 opened this issue 4 years ago • 3 comments

关于RoomDatabase单例问题 Context被回收会对RoomDatabase有影响吗?

285298984 avatar Mar 13 '21 02:03 285298984

关于RoomDatabase单例问题 Context被回收会对RoomDatabase有影响吗?

Translate -> Simple question about Room, Will Context recycling affect Room?

shawnthye-razer avatar Mar 16 '21 08:03 shawnthye-razer

Use context in RoomDatabase singleton pattern. After context is recycled, singleton pattern will be affected?

285298984 avatar May 12 '21 08:05 285298984

It depends on your process flow. See how to handling work that shouldn’t be cancelled.

seung-yong-kim avatar Feb 22 '22 03:02 seung-yong-kim