BedrioxDOCUMENTATION
API INTERFACE

CommandJob

A cooperative job whose poll method must return promptly and perform bounded work.

Bedriox\Api\Command\CommandJob
interfaceBedriox\Api\Command

Public methods

poll(): bool

Returns true once the job has completed.

cancel(): void

Releases external resources when the job or its owning plugin is stopped.

View exact source ↗