m-wrzr / streamlit-searchbox

Streamlit searchbox that dynamically updates and provides a list of suggestions based on a provided function
MIT License
240 stars 31 forks source link

Adding delay method #29

Closed Jumitti closed 11 months ago

Jumitti commented 11 months ago

Sometime, servers where we can do requests have limit of requests per second. So adding a delay avoids this problem.

I saw in the package that there is a :param delay. Maybe you're already working on it.

This addition of delay is due to the fact that I use an API where we have an easily reachable limit. Usually 0.25 seconds is enough