@@ -60,7 +60,7 @@ void processAll(ExecutorService executor) {
6060 if (!canStartProcessing (executor )) {
6161 return ;
6262 }
63-
63+
6464 isProcessing = true ;
6565 executor .execute (this ::processQueuedOperations );
6666 }
@@ -70,25 +70,25 @@ private boolean canStartProcessing(ExecutorService executor) {
7070 IterableLogger .w (TAG , "Already processing operations, skipping" );
7171 return false ;
7272 }
73-
73+
7474 if (executor == null || executor .isShutdown ()) {
7575 IterableLogger .e (TAG , "Cannot process operations: executor unavailable" );
7676 return false ;
7777 }
78-
78+
7979 return true ;
8080 }
8181
8282
8383 private void processQueuedOperations () {
8484 try {
8585 IterableLogger .d (TAG , "Starting to process queued operations" );
86-
86+
8787 QueuedOperation operation ;
8888 while ((operation = operations .poll ()) != null ) {
8989 executeOperationOnMainThread (operation );
9090 }
91-
91+
9292 IterableLogger .d (TAG , "Finished processing queued operations" );
9393 } finally {
9494 isProcessing = false ;
@@ -98,7 +98,7 @@ private void processQueuedOperations() {
9898
9999 private void executeOperationOnMainThread (QueuedOperation operation ) {
100100 IterableLogger .d (TAG , "Executing queued operation: " + operation .getDescription ());
101-
101+
102102 mainThreadHandler .post (() -> {
103103 try {
104104 operation .execute ();
@@ -235,14 +235,14 @@ private static boolean performInitializationWithTimeout(@NonNull Context context
235235 long startTime ) {
236236 try {
237237 IterableLogger .d (TAG , "Starting initialization with " + INITIALIZATION_TIMEOUT_SECONDS + "s timeout" );
238-
238+
239239 Future <?> initFuture = initExecutor .submit (() -> {
240240 IterableLogger .d (TAG , "Executing initialization on background thread" );
241241 IterableApi .initialize (context , apiKey , config );
242242 });
243243
244244 initFuture .get (INITIALIZATION_TIMEOUT_SECONDS , TimeUnit .SECONDS );
245-
245+
246246 long elapsed = System .currentTimeMillis () - startTime ;
247247 IterableLogger .d (TAG , "Initialization completed successfully in " + elapsed + "ms" );
248248 return true ;
0 commit comments