summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/sdk/Common/Future/NullCancellation.php
blob: 5e5b642f956ea4d989766911542985ebdb773faa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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
    }
}