aikar / TaskChain

TaskChain Control Flow framework. Helps facilitate running tasks on an application's "Main Thread" (such as a game), and tasks off the main (async).
https://taskchain.emc.gs
MIT License
202 stars 41 forks source link

BungeeCord support #11

Closed Acquized closed 6 years ago

Acquized commented 7 years ago

Is this possible? I tried implementing myself but I failed on the shutdown hooks (because Bungee doesn't has a proper event or shutdown method)

MiniDigger commented 7 years ago

if we don't find a better solution, the plugin needs to call a method on disabled manually to trigger the shutdown handlers...

aikar commented 7 years ago

yes, if you just call factory.shutdown in the bungee on disable that will work.

But I'm curious, how are you planning to use it in BungeeCord?

BungeeCord does not have the concept of a "Main Thread". What would .sync() do?

aikar commented 7 years ago

@Acquized