diff --git a/lib/src/delay.dart b/lib/src/delay.dart index 41b27b4..13aef85 100644 --- a/lib/src/delay.dart +++ b/lib/src/delay.dart @@ -1,6 +1,6 @@ part of '../bloc_event_transformers.dart'; -/// The delay() transformer is pausing adding events for a particular +/// The `delay()` transformer is pausing adding events for a particular /// increment of time (that you specify) before emitting each of the events. /// This has the effect of shifting the entire sequence of /// events added to the bloc forward in time by that specified increment. diff --git a/lib/src/throttle.dart b/lib/src/throttle.dart index 6be79d8..d9e3ea7 100644 --- a/lib/src/throttle.dart +++ b/lib/src/throttle.dart @@ -1,6 +1,6 @@ part of '../bloc_event_transformers.dart'; -/// Emits an , then ignores subsequent events +/// Emits an [Event], then ignores subsequent events /// for a [duration], then repeats this process. /// /// If [leading] is true, then the first event in each window is emitted. diff --git a/pubspec.yaml b/pubspec.yaml index 53e0d24..9a1d29a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,13 +7,13 @@ environment: sdk: ">=2.12.0 <4.0.0" dependencies: - bloc: ^8.0.2 + bloc: ^9.0.0 rxdart: ^0.28.0 dev_dependencies: - bloc_test: ^9.0.2 - equatable: ^2.0.3 - lints: ^4.0.0 + bloc_test: ^10.0.0 + equatable: ^2.0.7 + lints: ^5.1.1 # For information on the generic Dart part of this file, see the diff --git a/test/src/throttle/throttle_test.dart b/test/src/throttle/throttle_test.dart index 9446712..030e4bf 100644 --- a/test/src/throttle/throttle_test.dart +++ b/test/src/throttle/throttle_test.dart @@ -45,7 +45,7 @@ void main() { act: (bloc) async { List.generate(100, (index) => index) .forEach((count) => bloc.add(NewThrottleEvent(count + 1))); - await Future.delayed(throttleWindow); + await Future.delayed(throttleWindow * 1.5); List.generate(100, (index) => index) .forEach((count) => bloc.add(NewThrottleEvent(count + 101))); },