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 f76fb65
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ public <E extends Throwable> void observe(String name, AbstractComputationRunCon
createObservation(name, runContext).observeChecked(callable);
}

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 <T extends R, E extends Throwable> T observeRun(
String name, AbstractComputationRunContext<P> runContext, Observation.CheckedCallable<T, E> callable) throws E {
T result;
Expand Down

0 comments on commit f76fb65

Please sign in to comment.