Skip to content

Commit a4b8367

Browse files
committed
1.67
1 parent e01e9b0 commit a4b8367

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package dev.felnull.fnjl;
22

33
public class FNJLBuildIn {
4-
protected static final String VERSION = "1.66";
4+
protected static final String VERSION = "1.67";
55
}

common/src/main/java/dev/felnull/fnjl/concurrent/InvokeExecutor.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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
*

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
fnjl_group=dev.felnull
22
fnjl_name=felnull-java-library
3-
fnjl_version=1.66
3+
fnjl_version=1.67
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package dev.felnull.fnjln;
22

33
public 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
}

0 commit comments

Comments
 (0)