Skip to content

Commit f1cc188

Browse files
committed
Staging for version 0.12.2
1 parent 3bf6ea5 commit f1cc188

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.github.bthink-bgu</groupId>
77
<artifactId>BPjs</artifactId>
8-
<version>0.12.2-SNAPSHOT</version>
8+
<version>0.12.2</version>
99
<packaging>jar</packaging>
1010

1111
<name>BPjs</name>

src/main/java/il/ac/bgu/cs/bp/bpjs/BPjs.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static ScriptableObject getBPjsScope() {
8080
/**
8181
* Convenience method for running code that requires Rhino context. Ensures
8282
* that the context if closed after the block executes.
83-
* @param block
83+
* @param block The block of code to be executed with the context.
8484
*/
8585
public static void withContext( Consumer<Context> block ) {
8686
try {
@@ -120,10 +120,18 @@ private static void makeBPjsScope() {
120120
}
121121
}
122122

123+
/**
124+
* Returns the maker of executor service used by BPjs to advance b-threads.
125+
* @return the current executor service maker.
126+
*/
123127
public static ExecutorServiceMaker getExecutorServiceMaker() {
124128
return executorServiceMaker;
125129
}
126130

131+
/**
132+
* Set the executor service maker BPjs uses to advance b-threads.
133+
* @param executorServiceMaker the new executor service maker to be used.
134+
*/
127135
public static void setExecutorServiceMaker(ExecutorServiceMaker executorServiceMaker) {
128136
BPjs.executorServiceMaker = executorServiceMaker;
129137
}

0 commit comments

Comments
 (0)