File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
src/main/java/il/ac/bgu/cs/bp/bpjs Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments