We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
close
ExternalResource
ER 很多时候只会使用一次, 而用户很容易忘记关闭, 虽然即使增加了自动关闭也需要用户指定参数 autoClose = true.
autoClose = true
可能的方案: 为现有 ER 构造函数添加参数 autoClose: Boolean = false
ER
autoClose: Boolean = false
The text was updated successfully, but these errors were encountered:
建议修改toExternalResource名称,这个名字实在不像是要close的那种
toExternalResource
Sorry, something went wrong.
toReusableExternalResource toTempExternalResource
可以分成这两个?
其实我更偏向于引入useAsExternalResource(...lambda),让kotlin变量作用域和资源实际生命周期保持一致
useAsExternalResource(...lambda)
ExternalResource 实现 Closeable, 是能直接 res.use {} 的
Closeable
res.use {}
Successfully merging a pull request may close this issue.
ER 很多时候只会使用一次, 而用户很容易忘记关闭, 虽然即使增加了自动关闭也需要用户指定参数
autoClose = true
.可能的方案: 为现有
ER
构造函数添加参数autoClose: Boolean = false
The text was updated successfully, but these errors were encountered: