Skip to content

Commit

Permalink
Staging for version 0.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
michbarsinai committed Feb 17, 2022
1 parent 3bf6ea5 commit f1cc188
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.github.bthink-bgu</groupId>
<artifactId>BPjs</artifactId>
<version>0.12.2-SNAPSHOT</version>
<version>0.12.2</version>
<packaging>jar</packaging>

<name>BPjs</name>
Expand Down
10 changes: 9 additions & 1 deletion src/main/java/il/ac/bgu/cs/bp/bpjs/BPjs.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public static ScriptableObject getBPjsScope() {
/**
* Convenience method for running code that requires Rhino context. Ensures
* that the context if closed after the block executes.
* @param block
* @param block The block of code to be executed with the context.
*/
public static void withContext( Consumer<Context> block ) {
try {
Expand Down Expand Up @@ -120,10 +120,18 @@ private static void makeBPjsScope() {
}
}

/**
* Returns the maker of executor service used by BPjs to advance b-threads.
* @return the current executor service maker.
*/
public static ExecutorServiceMaker getExecutorServiceMaker() {
return executorServiceMaker;
}

/**
* Set the executor service maker BPjs uses to advance b-threads.
* @param executorServiceMaker the new executor service maker to be used.
*/
public static void setExecutorServiceMaker(ExecutorServiceMaker executorServiceMaker) {
BPjs.executorServiceMaker = executorServiceMaker;
}
Expand Down

0 comments on commit f1cc188

Please sign in to comment.