马良AI写作初始化仓库

This commit is contained in:
邓滨杰
2025-09-10 00:07:52 +08:00
parent 3c06bb1a03
commit 39c0f8840f
1309 changed files with 318528 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import 'dart:async';
class Debouncer {
Debouncer({this.delay = const Duration(milliseconds: 500)});
Timer? _timer;
final Duration delay;
void run(Function() action) {
_timer?.cancel();
_timer = Timer(delay, action);
}
void dispose() {
_timer?.cancel();
}
}