blob: 16909ec6d9935593c94fe6c7f2fbea5e6ce75427 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php
declare(strict_types=1);
namespace OpenTelemetry\SDK\Common\Future;
use Closure;
use Throwable;
interface CancellationInterface
{
/**
* @param Closure(Throwable): void $callback
*/
public function subscribe(Closure $callback): string;
public function unsubscribe(string $id): void;
}
|