call Sync Method
Calls getClassById method on the main thread and returns getClassById Future object. This task will be executed by the main server thread.
- Note: The Future.get() methods must NOT be called from the main thread.
- Note2: There is at least an average of 10ms latency until the isDone() method returns true.
Return
Future Future object related to the task
Parameters
<T>
The callable's return type
plugin
Plugin that owns the task
task
Task to be executed