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

Swoole\Thread\ArrayList和Queue 是否可以考虑下清空并返回剩余的数据? #5487

Closed
LIngMax opened this issue Sep 20, 2024 · 1 comment
Labels

Comments

@LIngMax
Copy link

LIngMax commented Sep 20, 2024

Swoole\Thread\Map()->clean(): void
Swoole\Thread\ArrayList()->clean()
Swoole\Thread\Queue()->clean(): void
ArrayList和Queue 清空返回剩余的数据

@matyhtf
Copy link
Member

matyhtf commented Sep 20, 2024

Map 和 ArrayList 可以使用 toArray 转为数组。Queue 无法遍历

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants