mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Fix failed merge
This commit is contained in:
parent
3a1b56494a
commit
2a72f274c9
@ -36,10 +36,9 @@ public class ObjectTaskRunnable<T> implements Runnable {
|
||||
private final RunnableVal<T> task;
|
||||
|
||||
public ObjectTaskRunnable(final Iterator<T> iterator,
|
||||
final RunnableVal<T> task, final Runnable whenDone) {
|
||||
final RunnableVal<T> task) {
|
||||
this.iterator = iterator;
|
||||
this.task = task;
|
||||
this.whenDone = whenDone;
|
||||
}
|
||||
|
||||
public CompletableFuture<Void> getCompletionFuture() {
|
||||
|
@ -25,9 +25,6 @@
|
||||
*/
|
||||
package com.plotsquared.core.util.task;
|
||||
|
||||
import com.plotsquared.core.PlotSquared;
|
||||
import com.plotsquared.core.util.RuntimeExceptionRunnableVal;
|
||||
|
||||
import javax.annotation.Nonnegative;
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
@ -200,15 +197,14 @@ public abstract class TaskManager {
|
||||
return taskRunnable.getCompletionFuture();
|
||||
}
|
||||
|
||||
@Nonnull public static TaskManager getPlatformImplementation() {
|
||||
return implementation;
|
||||
@Nullable public static TaskManager getPlatformImplementation() {
|
||||
return platformImplementation;
|
||||
}
|
||||
|
||||
@Nonnull public static void setPlatformImplementation(TaskManager implementation) {
|
||||
implementation = implementation;
|
||||
public static void setPlatformImplementation(@Nonnull final TaskManager implementation) {
|
||||
platformImplementation = implementation;
|
||||
}
|
||||
|
||||
public <T> T sync(final RunnableVal<T> function) {
|
||||
/**
|
||||
* Make a synchronous method call and return the result
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user