Skip to content

Commit b7b41f1

Browse files
committed
Add wfc() alias for waitForCompletion()
1 parent 72ed088 commit b7b41f1

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[1.5.3]
2+
- Add wfc() alias for waitForCompletion()
3+
14
[1.5.2]
25
- Allow scripts to be optionally interrupted during dispose()
36

core/src/main/java/org/mini2Dx/miniscript/core/GameFuture.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,14 @@ public void waitForCompletion() throws ScriptSkippedException {
139139
}
140140
}
141141

142+
/**
143+
* Alias to {@link #waitForCompletion()}
144+
* @throws ScriptSkippedException
145+
*/
146+
public void wfc() throws ScriptSkippedException {
147+
waitForCompletion();
148+
}
149+
142150
/**
143151
* Returns if this {@link GameFuture} is complete
144152
*

0 commit comments

Comments
 (0)