Open minecrafter opened 8 years ago
Essentially, you'll be able to do:
Fountain.getServer().getAsyncScheduler().schedule(() -> getLogger().info("Hello, world!"), TaskSpecification.nextTick(plugin));
I actually like the way that the Sponge API implements schedulers, so this will be loosely based off that (with some changes).
Why not just a TimeUnit or something?
@Techcable TaskSpecification
is a more fluent API. It also supports TimeUnit
.
Please do detail the wonderful plan for the Scheduler API.