Skip to content

Commit

Permalink
[BackgroundUtil] Moved to github flavor
Browse files Browse the repository at this point in the history
  • Loading branch information
OffRange committed Dec 26, 2023
1 parent 2911330 commit 8726a02
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package de.davis.passwordmanager.utils;

import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

public class BackgroundUtil {

private static final Executor executor = Executors.newSingleThreadExecutor();

public static void doInBackground(Runnable runnable){
executor.execute(runnable);
}
}

0 comments on commit 8726a02

Please sign in to comment.