-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BackgroundUtil] Moved to github flavor
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
app/src/github/java/de/davis/passwordmanager/utils/BackgroundUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |