Documentation ¶
Overview ¶
Copyright 2020 Mirantis, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Package debounce provides functionality to "debounce" multiple events in given interval and handle all at once For debounce pattern, see https://drailing.net/2018/01/debounce-function-for-golang/ As you can see, we draw some inspiration from that example. :) Currently this is tied to fsnotify.Event as the event type since Go prohibits us to use fully generic chan interface{} type Or rather, we cannot assign chan fsnotify.Event channel type to chan interface{} If this pattern becomes common we'll need to look at something like https://github.com/eapache/channels/
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.