. */ namespace SP\Domain\Task\Ports; use Closure; /** * Class TaskService * * @package SP\Domain\Common\Services */ interface TaskServiceInterface { /** * Track task status * * @throws \JsonException * @throws \SP\Domain\Common\Services\ServiceException */ public function trackStatus(string $taskId, Closure $messagePusher): void; }