mirror of
https://github.com/danog/sql.git
synced 2024-11-30 04:29:18 +01:00
Extend Closable in TransientResource
This commit is contained in:
parent
aa1144f3e4
commit
ca11796cc1
@ -2,13 +2,10 @@
|
||||
|
||||
namespace Amp\Sql;
|
||||
|
||||
interface TransientResource
|
||||
{
|
||||
/**
|
||||
* Indicates if the resource is still valid.
|
||||
*/
|
||||
public function isAlive(): bool;
|
||||
use Amp\Closable;
|
||||
|
||||
interface TransientResource extends Closable
|
||||
{
|
||||
/**
|
||||
* Get the timestamp of the last usage of this resource.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user