Skip to content

Commit

Permalink
remove startNow param
Browse files Browse the repository at this point in the history
  • Loading branch information
jinyus committed Jan 31, 2024
1 parent 6f3b3e8 commit df5575b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 0 additions & 3 deletions packages/state_beacon_core/lib/src/extensions/wrap_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ extension ReadableBeaconWrapUtils<T> on ReadableBeacon<T> {
/// See: `Beacon.debounced` for more details.
DebouncedBeacon<T> debounce({
required Duration duration,
bool startNow = true,
String? name,
}) {
final beacon = Beacon.lazyDebounced<T>(
Expand Down Expand Up @@ -106,7 +105,6 @@ extension ReadableBeaconWrapUtils<T> on ReadableBeacon<T> {
/// See: `Beacon.throttled` for more details.
ThrottledBeacon<T> throttle({
required Duration duration,
bool startNow = true,
bool dropBlocked = true,
String? name,
}) {
Expand Down Expand Up @@ -144,7 +142,6 @@ extension ReadableBeaconWrapUtils<T> on ReadableBeacon<T> {
/// ```
/// See: `Beacon.filtered` for more details.
FilteredBeacon<T> filter({
bool startNow = true,
bool Function(T?, T)? filter,
String? name,
}) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,9 @@ void main() {

final buffered = beacon.buffer(3);
final bufferedTime = beacon.bufferTime(duration: k10ms);
final debounced = beacon.debounce(duration: k10ms, startNow: false);
final throttled = beacon.throttle(duration: k10ms, startNow: false);
final debounced = beacon.debounce(duration: k10ms);
final throttled = beacon.throttle(duration: k10ms);
final filtered = beacon.filter(
startNow: false,
filter: (p0, p1) => p1.isEven,
);

Expand Down
2 changes: 1 addition & 1 deletion packages/state_beacon_core/test/src/wrapping_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ void main() {
});

test('should delegate writes to parent when chained/4', () async {
BeaconObserver.instance = LoggingObserver();
// BeaconObserver.instance = LoggingObserver();

final count = Beacon.writable<int>(10, name: 'count');

Expand Down

0 comments on commit df5575b

Please sign in to comment.