Skip to content

Commit

Permalink
Restore deleted method
Browse files Browse the repository at this point in the history
Signed-off-by: Slimane AMAR <amarsli@gm0winl104.bureau.si.interne>
  • Loading branch information
Slimane AMAR committed Dec 26, 2024
1 parent 8699ee2 commit 4af5dbb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ protected Observation createObservation(String name, AbstractComputationRunConte
return observation;
}

public <T, E extends Throwable> T observe(String name, AbstractComputationRunContext<P> runContext, Observation.CheckedCallable<T, E> callable) throws E {
return createObservation(name, runContext).observeChecked(callable);
}

public <E extends Throwable> void observe(String name, AbstractComputationRunContext<P> runContext, Observation.CheckedRunnable<E> callable) throws E {
createObservation(name, runContext).observeChecked(callable);
}
Expand Down

0 comments on commit 4af5dbb

Please sign in to comment.