ttrss/vendor/open-telemetry/sdk/Common/Future/NullCancellation.php

21 lines
334 B
PHP
Raw Normal View History

2023-10-20 14:12:29 +00:00
<?php
declare(strict_types=1);
namespace OpenTelemetry\SDK\Common\Future;
use Closure;
final class NullCancellation implements CancellationInterface
{
public function subscribe(Closure $callback): string
{
return self::class;
}
public function unsubscribe(string $id): void
{
// no-op
}
}