Skip to content

Commit

Permalink
feat(executors): upgrade dispatch queue
Browse files Browse the repository at this point in the history
  • Loading branch information
Justson committed Aug 10, 2020
1 parent f462e70 commit d2708fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.github.Justson:dispatch-queue:v1.0.4'
implementation 'com.github.Justson:dispatch-queue:v1.0.5'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
package com.flyingpigeon.library.execute;

import com.queue.library.Dispatch;
import com.queue.library.DispatchThread;
import com.queue.library.GlobalQueue;

Expand All @@ -26,9 +25,9 @@
*/
public class Executors {

private volatile static Dispatch SINGLE_THREAD;
private volatile static DispatchThread SINGLE_THREAD;

public static Dispatch getSingleThreadExecutor() {
public static DispatchThread getSingleThreadExecutor() {
if (null == SINGLE_THREAD) {
synchronized (Executors.class) {
if (null == SINGLE_THREAD) {
Expand All @@ -39,7 +38,7 @@ public static Dispatch getSingleThreadExecutor() {
return SINGLE_THREAD;
}

public static Dispatch getMainThreadExecutor() {
public static DispatchThread getMainThreadExecutor() {
return GlobalQueue.getMainQueue();
}

Expand Down

0 comments on commit d2708fb

Please sign in to comment.