File tree Expand file tree Collapse file tree 4 files changed +16
-8
lines changed
common/src/main/java/dev/felnull/fnjl
natives/src/main/java/dev/felnull/fnjln Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 1
1
package dev .felnull .fnjl ;
2
2
3
3
public class FNJLBuildIn {
4
- protected static final String VERSION = "1.67 " ;
4
+ protected static final String VERSION = "1.68 " ;
5
5
}
Original file line number Diff line number Diff line change @@ -20,26 +20,34 @@ public void execute(@NotNull Runnable command) {
20
20
}
21
21
22
22
/**
23
- * タスクを実行する
23
+ * すべてのタスクを実行する
24
+ *
25
+ * @return 実行したタスク数
24
26
*/
25
- public void runTasks () {
26
- while (!tasks .isEmpty ())
27
+ public int runTasks () {
28
+ int ct = 0 ;
29
+ while (!tasks .isEmpty ()) {
27
30
tasks .poll ().run ();
31
+ ct ++;
32
+ }
33
+ return ct ;
28
34
}
29
35
30
36
/**
31
- * タスクを実行する
37
+ * 最大指定した数のタスクをすべて実行する
32
38
*
33
39
* @param max 実行する最大タスク数
40
+ * @return 実行したタスク数
34
41
*/
35
- public void runTasks (int max ) {
42
+ public int runTasks (int max ) {
36
43
int ct = 0 ;
37
44
while (!tasks .isEmpty ()) {
38
45
tasks .poll ().run ();
39
46
ct ++;
40
47
if (ct >= max )
41
48
break ;
42
49
}
50
+ return ct ;
43
51
}
44
52
45
53
/**
Original file line number Diff line number Diff line change 1
1
fnjl_group =dev.felnull
2
2
fnjl_name =felnull-java-library
3
- fnjl_version =1.67
3
+ fnjl_version =1.68
Original file line number Diff line number Diff line change 1
1
package dev .felnull .fnjln ;
2
2
3
3
public class FNJLNBuildIn {
4
- protected static final String VERSION = "1.67 " ;
4
+ protected static final String VERSION = "1.68 " ;
5
5
6
6
protected static final int NATIVE_LIBRARY_VERSION = 1 ;
7
7
}
You can’t perform that action at this time.
0 commit comments