Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Return value
bool
TRUE if the wait operation was successful and lock may be available. You
still need to acquire the lock manually and it may fail again.
...
if ($this->lockMayBeAvailable($name)) {
// No longer need to wait.
return FALSE;
}
}
// The caller must still wait longer to get the lock.
return TRUE;
}
Comment | File | Size | Author |
---|---|---|---|
#4 | drupal-2057131-4.patch | 723 bytes | olli |
#1 | drupal-2057131-1.patch | 666 bytes | olli |
Comments
Comment #1
olli CreditAttribution: olli commentedComment #3
olli CreditAttribution: olli commented#1: drupal-2057131-1.patch queued for re-testing.
That was "Last checked is updated" in Drupal\locale\Tests\LocaleUpdateCronTest->testUpdateCron() line 120.
Comment #4
olli CreditAttribution: olli commentedMaybe this? In D7 it says "TRUE if the lock holds, FALSE if it is available".
Comment #5
jhodgdonI agree with this documentation change, which as you say, appears to fit with the actual implementation in the class. Let's move it to the Lock System again and see if the maintainers agree with the change to the interface documentation.
Comment #6
jhodgdonNo comment from the maintainers. I went ahead and committed this documentation change. Thanks again!
Comment #7.0
(not verified) CreditAttribution: commentedUpdated issue summary.