Android代码-android-weak-handler

时间:2022-08-27 03:48:55
【文件属性】:
文件名称:Android代码-android-weak-handler
文件大小:91KB
文件格式:ZIP
更新时间:2022-08-27 03:48:55
Android代码 Android Weak Handler Memory safer implementation of android.os.Handler Problem Original implementation of Handler always keeps hard reference to handler in queue of execution. Any object in Message or Runnable posted to android.os.Handler will be hard referenced for some time. If you create anonymous Runnable and call to postDelayed with large timeout, that Runnable will be held in memory until timeout passes. Even if your Runnable seems small, it indirectly references owner class, which is us
【文件预览】:
android-weak-handler-master
----gradlew.bat(2KB)
----gradlew(5KB)
----LICENSE(1KB)
----gradle()
--------wrapper()
----mvn-local-support.gradle(2KB)
----src()
--------androidTest()
--------main()
----WeakHandler.png(27KB)
----.gitignore(291B)
----README.md(2KB)
----build.gradle(2KB)

网友评论