I have been researching how to do stuff with Skript async/threaded for a bit, and apart from the obvious usage of SkQuery's $ thread, i randomly went with searching for "Skript AsyncEffect" in google. And behold, there were some actual results: https://github.com/SkriptLang/Skript/blob/master/src/main/java/ch/njol/skript/util/AsyncEffect.java
My question now being: why isn't this in any way documented? Is it actually something internal that Skript users don't have access to?
Cheers
It is provided for Skript addons written in Java. Using it from scripts is not possible.
It's not intended for scripters to use, it's something skript/addon devs can extend to make an effect that runs on another thread. Skript doesn't have any type of tool to run things sync or async - scripters shouldn't have to determine that.
edit: i got sniped
Most helpful comment
It's not intended for scripters to use, it's something skript/addon devs can extend to make an effect that runs on another thread. Skript doesn't have any type of tool to run things sync or async - scripters shouldn't have to determine that.
edit: i got sniped