protected function scandirTask(Context $context, string $path): \Generator
    {
        $entries = yield $this->pool->submit($context, new MethodCall(static::class, 'scandirJob', $path));
        
        if ($entries === null) {
            throw new FilesystemException(\sprintf('Failed to scan directory: "%s"', $path));
        }
        
        return $entries;
    }