PocketMine
CallbackTask Class Reference
Inheritance diagram for CallbackTask:
Task

Public Member Functions

 __construct (callable $callable, array $args=[])
 
 getCallable ()
 
 onRun ($currentTicks)
 
- Public Member Functions inherited from Task
 getHandler ()
 
 getTaskId ()
 
 setHandler ($taskHandler)
 
 onRun ($currentTick)
 
 onCancel ()
 

Protected Attributes

 $callable
 
 $args
 

Detailed Description

Allows the creation of simple callbacks with extra data The last parameter in the callback will be this object

If you want to do a task in a Plugin, consider extending PluginTask to your needs

Deprecated:

Constructor & Destructor Documentation

__construct ( callable  $callable,
array  $args = [] 
)
Parameters
callable$callable
array$args

Member Function Documentation

getCallable ( )
Returns
callable

The documentation for this class was generated from the following file: