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

Implement default values in Collector #221

Open
tshemsedinov opened this issue Dec 8, 2023 · 1 comment
Open

Implement default values in Collector #221

tshemsedinov opened this issue Dec 8, 2023 · 1 comment

Comments

@tshemsedinov
Copy link
Member

tshemsedinov commented Dec 8, 2023

const default = { userName: 'Marcus', fileName: 'file.txt' };
const ac = collect(['userName', 'fileName'], { default, timeout: 1000 });

If values will not be added in 1 sec, default values will be used

@axbuglak
Copy link
Contributor

If I understand you correctly, default values must be used after timeout after initialization of collector and not after set command
#231

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

No branches or pull requests

2 participants