File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 16
16
use ServiceBus \Mutex \Mutex ;
17
17
use function Amp \asyncCall ;
18
18
use function Amp \call ;
19
+ use function Amp \delay ;
19
20
use function Amp \File \get ;
20
21
use function Amp \File \put ;
21
22
use function Amp \File \unlink ;
22
- use Amp \Delayed ;
23
23
use Amp \Promise ;
24
24
use ServiceBus \Mutex \Exceptions \SyncException ;
25
25
@@ -94,7 +94,7 @@ function (): \Generator
94
94
95
95
while ($ exists )
96
96
{
97
- yield new Delayed (self ::LATENCY_TIMEOUT );
97
+ yield delay (self ::LATENCY_TIMEOUT );
98
98
}
99
99
100
100
yield put ($ this ->filePath , '' );
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ static function (): \Generator
57
57
58
58
unset($ lock , $ mutex );
59
59
60
- static ::assertFileNotExists ($ mutexFile );
60
+ static ::assertFileDoesNotExist ($ mutexFile );
61
61
62
62
Loop::stop ();
63
63
}
You can’t perform that action at this time.
0 commit comments