ClosureTask
Extends Task
Task implementation which allows closures to be called by a scheduler.
Example usage:
TaskScheduler->scheduleTask(new ClosureTask(function() : void{
echo "HI\n";
});Methods
__construct()
php
public function __construct(\Closure $closure)getName()
php
public function getName() : stringonRun()
php
public function onRun() : void