This commit is contained in:
Paldiu 2022-12-21 15:31:55 -06:00
commit a4f1e01c87

View File

@ -2,7 +2,7 @@
![](https://img.shields.io/github/license/SimplexDevelopment/SimplexSS)
![](https://img.shields.io/github/languages/top/SimplexDevelopment/SimplexSS)
![](https://img.shields.io/github/workflow/status/SimplexDevelopment/SimplexSS/CodeQL/main)
![](https://img.shields.io/github/actions/workflow/status/SimplexDevelopment/SimplexSS/codeql.yml?branch=main)
![](https://img.shields.io/github/v/release/SimplexDevelopment/SimplexSS?include_prereleases)
![](https://jitpack.io/v/SimplexDevelopment/SimplexSS.svg)
![](https://img.shields.io/github/issues/SimplexDevelopment/SimplexSS)
@ -89,6 +89,7 @@
Then, you should use the Service Manager to create some new service pools. You can use `ServicePool#emptyBukkitServicePool(String, JavaPlugin)` for a service pool which will operate on the main server thread, or you can use `ServicePool#emptyServicePool(String, boolean)` for a completely separate, non-blocking scheduler which can be either singular or multithreaded. You should also use the service manager stream to register your services, and assign a Flux<Disposable> object so we can cancel the services later on in `JavaPlugin#onDisable()`.
```Java
private SchedulingSystem<YourPlugin> scheduler;
private Flux<Disposable> disposables;
@Override