15 lines
321 B
PHP
15 lines
321 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace MeshVault\Console;
|
|
|
|
use MeshVault\Indexer\ImportWorker;
|
|
|
|
/** Builds an ImportWorker bound to a specific graceful-stop callback. */
|
|
interface ImportWorkerFactory
|
|
{
|
|
/** @param callable(): bool $shouldStop */
|
|
public function __invoke(callable $shouldStop): ImportWorker;
|
|
}
|