mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
schedule commit&push
This commit is contained in:
@@ -16,12 +16,20 @@
|
||||
package com.intellij.util;
|
||||
|
||||
import com.intellij.openapi.application.ModalityState;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class SingleAlarm extends Alarm {
|
||||
private final Runnable task;
|
||||
private final int delay;
|
||||
|
||||
public SingleAlarm(Runnable task, int delay) {
|
||||
public SingleAlarm(@NotNull Runnable task, int delay) {
|
||||
this.task = task;
|
||||
this.delay = delay;
|
||||
}
|
||||
|
||||
public SingleAlarm(@NotNull Runnable task, int delay, @NotNull ThreadToUse threadToUse) {
|
||||
super(threadToUse);
|
||||
|
||||
this.task = task;
|
||||
this.delay = delay;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user