Class QueryAsyncTask
A shortcut for doing a Query in the background.
This is a class that allows you to query one host in the background.
Usage: new QueryAsyncTask($thisPlugin,"queryResults",$host,$port)
And the method will be called when the query finishes.
- pocketmine\scheduler\AsyncTask
-
aliuly\common\PluginAsyncTask
-
aliuly\common\QueryAsyncTask
public
|
#
__construct( pocketmine\plugin\Plugin $owner, str $callable, str $host, integer $port = 19132, array $args = [] )
|
public
|
onCompletion()
|
protected
|
$host
|
|
protected
|
$port
|
$args,
$callable,
$owner
|