Skip to content
This repository has been archived by the owner on Dec 31, 2021. It is now read-only.

Scheduler #17

Open
minecrafter opened this issue Jun 15, 2016 · 4 comments
Open

Scheduler #17

minecrafter opened this issue Jun 15, 2016 · 4 comments
Assignees

Comments

@minecrafter
Copy link
Contributor

No description provided.

@minecrafter minecrafter self-assigned this Jun 15, 2016
@minecrafter minecrafter added this to the Bukkit feature parity milestone Jun 15, 2016
@phase
Copy link
Member

phase commented Jun 15, 2016

Please do detail the wonderful plan for the Scheduler API.

@minecrafter
Copy link
Contributor Author

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).

@Techcable
Copy link
Member

Why not just a TimeUnit or something?

@minecrafter
Copy link
Contributor Author

@Techcable TaskSpecification is a more fluent API. It also supports TimeUnit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants