☰
Debian Codegraph
@
19.0.0+dfsg-1
/
/
addons
/
mail
/
push-to-talk-extension
/
utils.js
☽
☼
addons/mail/push-to-talk-extension/utils.js
code
plain
raw
LGPL-3+
2004-2026 Odoo SA
debian/copyright
1
export function throttle(fn, delay) {
2
let timeout = null;
3
4
return function (...args) {
5
if (timeout === null) {
6
fn(...args);
7
timeout = setTimeout(() => {
8
timeout = null;
9
}, delay);
10
}
11
};
12
}