Skip to content
New issue

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

支持 append 时控制 reload 行为 #356

Open
1 task done
tint opened this issue Oct 5, 2024 · 0 comments
Open
1 task done

支持 append 时控制 reload 行为 #356

tint opened this issue Oct 5, 2024 · 0 comments
Labels
feature Categorizes as related to a new feature

Comments

@tint
Copy link

tint commented Oct 5, 2024

Describe the feature

当我在初始化项目时,希望在使用 Append 方法时跳过已经加载过的数据源,但实际上不是这样的,所以我不得不把数据源包装成 io.ReadCloser 接口,这个时候我又不得不考虑并发的情况,于是我又不得不引入 sync.Mutex 或其它相关的包。

Describe the solution you'd like

希望将在 Append 的时候将 Reload 行为交给开发者决定。

Describe alternatives you've considered

新增一个开发者可以控制 Reload 行为的类 Append 方法;或者 Append 方法可以接收内置接口 dataSource 的实现。

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@tint tint added the feature Categorizes as related to a new feature label Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Categorizes as related to a new feature
Projects
None yet
Development

No branches or pull requests

3 participants
@tint and others