Skip to content

Commit

Permalink
Update Try.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ME1312 committed Oct 24, 2021
1 parent 3e444fa commit e30e3be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GalaxiAPI/global/src/net/ME1312/Galaxi/Library/Try.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public <T> T get(Supplier<T> value, java.util.function.Consumer<Throwable> fallb
* @param fallback Code to run for handling exceptions
* @return The return value of that code (or null in the event of an exception)
*/
public <T> T getOrHandle(Supplier<T> value, java.util.function.Consumer<Throwable> fallback) {
public <T> T getOrConsume(Supplier<T> value, java.util.function.Consumer<Throwable> fallback) {
Util.nullpo(fallback);
try {
return value.run();
Expand Down

0 comments on commit e30e3be

Please sign in to comment.