We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad5c3ea commit a4c973aCopy full SHA for a4c973a
1 file changed
README.md
@@ -30,5 +30,16 @@ SchedulerAPI.scheduleAfter(() -> {
30
}, 1000);
31
```
32
33
-This method will schedule a task after a specific amount of time.
+This method will execute a task after a specific amount of time.
34
+
35
+## Schedule After if Condition
36
+```java
37
+boolean condition = true;
38
+SchedulerAPI.scheduleAfter(() -> {
39
+ System.out.println("Hello world, it's been a second!");
40
+}, 1000, () -> condition);
41
+```
42
43
+This method will execute a task after a specific amount of time if a condition is true.
44
45
0 commit comments