Skip to content

Commit c7cd3fc

Browse files
committed
remove deprecated notice
1 parent 1fb200c commit c7cd3fc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Filesystem/FilesystemMutex.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
use ServiceBus\Mutex\Mutex;
1717
use function Amp\asyncCall;
1818
use function Amp\call;
19+
use function Amp\delay;
1920
use function Amp\File\get;
2021
use function Amp\File\put;
2122
use function Amp\File\unlink;
22-
use Amp\Delayed;
2323
use Amp\Promise;
2424
use ServiceBus\Mutex\Exceptions\SyncException;
2525

@@ -94,7 +94,7 @@ function (): \Generator
9494

9595
while ($exists)
9696
{
97-
yield new Delayed(self::LATENCY_TIMEOUT);
97+
yield delay(self::LATENCY_TIMEOUT);
9898
}
9999

100100
yield put($this->filePath, '');

tests/Filesystem/FilesystemMutexTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static function (): \Generator
5757

5858
unset($lock, $mutex);
5959

60-
static::assertFileNotExists($mutexFile);
60+
static::assertFileDoesNotExist($mutexFile);
6161

6262
Loop::stop();
6363
}

0 commit comments

Comments
 (0)