Yu-Jack
3/11/2019 - 12:47 PM

ScheduledThreadPoolExecutor - 4.java

public static ScheduledExecutorService newSingleThreadScheduledExecutor() {
    return new DelegatedScheduledExecutorService
        (new ScheduledThreadPoolExecutor(1));
}