Minor update

This commit is contained in:
Paldiu
2022-12-14 18:55:47 -06:00
parent 1687ca32f3
commit e801b6700f
71 changed files with 7030 additions and 8 deletions

View File

@ -16,25 +16,25 @@ public interface ISchedule {
* Queues a service to be executed in a service pool.
*
* @param service The service to use to locate the associated service pool and queue the service for execution.
* @return A Mono<Disposable> that can be used to cancel the service.
* @return A Mono object that can be used to cancel the service.
*/
@NotNull Mono<Disposable> queue(@NotNull IService service);
/**
* @param service The service to run once.
* @return A Mono<Void> object which can be used to run the service one time using {@link Mono#subscribe()}.
* @return A Mono object which can be used to run the service one time using {@link Mono#subscribe()}.
*/
Mono<Void> runOnce(IService service);
/**
* @param service The service to forcefully stop.
* @return A Mono<Void> object which can be used to forcefully stop the service with {@link Mono#subscribe()}.
* @return A Mono object which can be used to forcefully stop the service with {@link Mono#subscribe()}.
*/
Mono<Void> forceStop(IService service);
/**
* @param service The service to forcefully start.
* @return A Mono<Void> object which can be used to forcefully start the service with {@link Mono#subscribe()}.
* @return A Mono object which can be used to forcefully start the service with {@link Mono#subscribe()}.
*/
Mono<Void> forceStart(IService service);
}

View File

@ -2,8 +2,6 @@ package io.github.simplexdevelopment.api;
import io.github.simplexdevelopment.scheduler.ServicePool;
import org.bukkit.plugin.java.JavaPlugin;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import reactor.core.publisher.Mono;
public interface IService extends Runnable, Identifier {