[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Lua-Sqlite3 handler how to wait a few milliseconds?
- From: albert <albert_200200@...>
- Date: Thu, 14 Mar 2013 09:48:50 +0800
http://www.nessie.de/mroth/lua-sqlite3/documentation.html#ref20
-- Ten attempts are made to proceed, if the database is locked
function my_busy_handler(attempts_made)
if attempts_made < 10 then
return true
else
return false
end
end
In the document, it said,"A busy handler could do some other work or
wait a few milliseconds."
What's the code to wait a few milliseconds? Thanks in advance.