File tree Expand file tree Collapse file tree 4 files changed +18
-3
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 +18
-3
lines changed Original file line number Diff line number Diff line change 11package dev .felnull .fnjl ;
22
33public class FNJLBuildIn {
4- protected static final String VERSION = "1.66 " ;
4+ protected static final String VERSION = "1.67 " ;
55}
Original file line number Diff line number Diff line change @@ -27,6 +27,21 @@ public void runTasks() {
2727 tasks .poll ().run ();
2828 }
2929
30+ /**
31+ * タスクを実行する
32+ *
33+ * @param max 実行する最大タスク数
34+ */
35+ public void runTasks (int max ) {
36+ int ct = 0 ;
37+ while (!tasks .isEmpty ()) {
38+ tasks .poll ().run ();
39+ ct ++;
40+ if (ct >= max )
41+ break ;
42+ }
43+ }
44+
3045 /**
3146 * 現在の実行待ちタスクの数
3247 *
Original file line number Diff line number Diff line change 11fnjl_group =dev.felnull
22fnjl_name =felnull-java-library
3- fnjl_version =1.66
3+ fnjl_version =1.67
Original file line number Diff line number Diff line change 11package dev .felnull .fnjln ;
22
33public class FNJLNBuildIn {
4- protected static final String VERSION = "1.66 " ;
4+ protected static final String VERSION = "1.67 " ;
55
66 protected static final int NATIVE_LIBRARY_VERSION = 1 ;
77}
You can’t perform that action at this time.
0 commit comments