1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 21:31:18 +01:00
amp/lib/Disposable.php
2016-06-01 11:37:12 -05:00

15 lines
316 B
PHP

<?php
namespace Amp;
use Interop\Async\Awaitable;
/**
* Objects returned from \Amp\Observable::subscribe() implement this interface.
*/
interface Disposable extends Awaitable {
/**
* Disposes of the subscriber, failing with an instance of \Amp\DisposedException
*/
public function dispose();
}