From 9253dd48aff8738eb99f0568c5c38f26c3571647 Mon Sep 17 00:00:00 2001 From: Nikolas Rimikis Date: Fri, 3 Nov 2023 23:45:21 +0100 Subject: [PATCH] refactor(neon): rename action parameter of InteractiveBloc.wrapAction Signed-off-by: Nikolas Rimikis --- packages/neon/neon/lib/src/bloc/bloc.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/neon/neon/lib/src/bloc/bloc.dart b/packages/neon/neon/lib/src/bloc/bloc.dart index 835a24ff..098c5050 100644 --- a/packages/neon/neon/lib/src/bloc/bloc.dart +++ b/packages/neon/neon/lib/src/bloc/bloc.dart @@ -43,7 +43,7 @@ abstract class InteractiveBloc extends Bloc { _errorsStreamController.add(error); } - /// Wraps the action [call]. + /// Wraps the given [action]. /// /// If [disableTimeout] is `true` [RequestManager] will apply the default /// timeout. On success the state will be refreshed through the [refresh] @@ -52,15 +52,15 @@ abstract class InteractiveBloc extends Bloc { @protected // ignore: avoid_void_async void wrapAction( - final AsyncCallback call, { + final AsyncCallback action, { final bool disableTimeout = false, final AsyncCallback? refresh, }) async { try { if (disableTimeout) { - await call(); + await action(); } else { - await RequestManager.instance.timeout(call); + await RequestManager.instance.timeout(action); } await (refresh ?? this.refresh)();