Skip to content

Commit

Permalink
doc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Dec 14, 2023
1 parent 64c4dbf commit 06e5618
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion py/server/deephaven/server/executors.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def submit_task(executor_name: str, task: Callable[[], None]) -> None:
executor_name (str): the name of the executor to submit the task to
task (Callable[[], None]): the function to run on the named executor
Raises: KeyError if the executor name
Raises:
KeyError if the executor name
"""
_executors[executor_name](task)

Expand All @@ -53,6 +54,9 @@ def _register_named_java_executor(executor_name: str, java_executor: jpy.JType)
Args:
executor_name (str): the name of the executor to register
java_executor (jpy.JType): a Java Consumer<Runnable> instance
Raises:
DHError
"""
if executor_name in executor_names():
raise DHError(f"Executor with name {executor_name} already registered")
Expand Down

0 comments on commit 06e5618

Please sign in to comment.