Skip to content

Commit a4c973a

Browse files
authored
Update README.md
1 parent ad5c3ea commit a4c973a

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,16 @@ SchedulerAPI.scheduleAfter(() -> {
3030
}, 1000);
3131
```
3232

33-
This method will schedule a task after a specific amount of time.
33+
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+
3445

0 commit comments

Comments
 (0)