Skip to content

Commit ca11796

Browse files
committed
Extend Closable in TransientResource
1 parent aa1144f commit ca11796

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/TransientResource.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22

33
namespace Amp\Sql;
44

5-
interface TransientResource
6-
{
7-
/**
8-
* Indicates if the resource is still valid.
9-
*/
10-
public function isAlive(): bool;
5+
use Amp\Closable;
116

7+
interface TransientResource extends Closable
8+
{
129
/**
1310
* Get the timestamp of the last usage of this resource.
1411
*

0 commit comments

Comments
 (0)