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

Add ability to specify INFINITE_TIMEOUT #39

Merged
merged 1 commit into from
May 10, 2023

Conversation

krydos
Copy link
Contributor

@krydos krydos commented May 10, 2023

hey @emmanuelsw,
Thanks for the library!

We use it in our project and there are some cases when we want to keep this notification on the screen forever. To do so we specify weird timeouts like 99999999.
Looking through the repo I found this discussion #12 and I totally agree that -1 makes a lot of sense to use as "infinite timeout" argument.

In this PR I've added INFINITE_TIMEOUT const, updated readme and updated the example page.

I'm not sure if I should commit dist files too, please let me know if I should. Also let me know if you have better idea on how to implement it.

Thanks!

@emmanuelsw
Copy link
Owner

Hey! Thank you for the PR.
I think it's a decent solution so I'll release it in the next version.

@emmanuelsw emmanuelsw merged commit c6080d4 into emmanuelsw:main May 10, 2023
@emmanuelsw
Copy link
Owner

Released in 2.0.1!

@krydos krydos deleted the infinite-timeout branch May 11, 2023 02:16
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

Successfully merging this pull request may close these issues.

2 participants