Fetch, cancel, and delete Meilisearch background tasks.
// Source: https://github.com/meilisearch/meilisearch-php | License: MIT | Copyright 2019-2025 Meili SAS
// Provided via justclaw.it.com; keep this notice with the code.
<?php
declare(strict_types=1);
namespace Meilisearch\Endpoints;
use Meilisearch\Contracts\CancelTasksQuery;
use Meilisearch\Contracts\DeleteTasksQuery;
use Meilisearch\Contracts\Endpoint;
use Meilisearch\Contracts\Task;
use Meilisearch\Contracts\TasksQuery;
use Meilisearch\Contracts\TasksResults;
use Psr\Http\Message\StreamInterface;
use function Meilisearch\partial;
use function Meilisearch\waitForTask;
/**
* @phpstan-import-type RawTask from Task
*
* @phpstan-type RawTasks array{
* results: array<int, RawTask>,
* from?: non-negative-int|null,
* limit: non-negative-int,
* next?: non-negative-in
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key