debounce updateAttachment

This commit is contained in:
Salvatore Giordano
2021-03-01 11:55:37 +01:00
parent ecb559f687
commit b36c31c992
2 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import 'dart:async';
import 'package:meta/meta.dart';
/// Map of timeouts being debounced
Map timeouts = {};
Map<Function, Timer> timeouts = {};
/// Runs a function avoiding calling it too many times in a [timeoutMS] window
void debounce({