mirror of
https://github.com/NixOS/nix
synced 2025-06-28 01:11:15 +02:00
Merge remote-tracking branch 'origin/master' into flakes
This commit is contained in:
commit
87873d0d65
25 changed files with 128 additions and 93 deletions
|
@ -103,8 +103,8 @@ void handleSQLiteBusy(const SQLiteBusy & e);
|
|||
|
||||
/* Convenience function for retrying a SQLite transaction when the
|
||||
database is busy. */
|
||||
template<typename T>
|
||||
T retrySQLite(std::function<T()> fun)
|
||||
template<typename T, typename F>
|
||||
T retrySQLite(F && fun)
|
||||
{
|
||||
while (true) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue