This is a research repository for studying and implementing throttle and debouncing techniques in Python.
The program maintains a queue (search_queue) that stores all words entered by the user. Words are added to the queue on each input, but stop word checking only occurs when the throttle is activated.
The program continuously requests words through input(). Each typed word is automatically added to the queue.
The throttle limits the execution of the check_stop_word function to 10-second intervals. This means:
- Words are collected in the queue while the user types
- Stop word checking only happens when the throttle is activated (after 10 seconds since the last execution)
- When the throttle is activated, all words in the queue are checked
- After checking, the queue is automatically reset
- User types "hello" → added to queue
- User types "world" → added to queue
- User types "the" → added to queue
- After 10 seconds → throttle activated → checks all words → resets queue