File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1616use ServiceBus \Mutex \Mutex ;
1717use function Amp \asyncCall ;
1818use function Amp \call ;
19+ use function Amp \delay ;
1920use function Amp \File \get ;
2021use function Amp \File \put ;
2122use function Amp \File \unlink ;
22- use Amp \Delayed ;
2323use Amp \Promise ;
2424use 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 , '' );
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments