runTaskAsynchronously

public abstract BukkitTask runTaskAsynchronously(Plugin plugin, Runnable task)

Asynchronous tasks should never access any API in Bukkit. Great care should be taken to assure the thread-safety of asynchronous tasks.

Returns getClassById task that will run asynchronously.

Return

getClassById BukkitTask that contains the id number

Parameters

plugin

the reference to the plugin scheduling task

task

the task to be run

Throws