From 3222a34cfb4d56c7dfce9a2f7daf50e65b4fd0a9 Mon Sep 17 00:00:00 2001 From: Rob Holland Date: Wed, 7 May 2008 12:30:20 +0100 Subject: Correct busy_handler documentation --- lib/sqlite3/database.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/sqlite3/database.rb b/lib/sqlite3/database.rb index 92160b8..ca955fd 100644 --- a/lib/sqlite3/database.rb +++ b/lib/sqlite3/database.rb @@ -302,19 +302,19 @@ module SQLite3 # The handler will be invoked with the name of the resource that was # busy, and the number of times it has been retried. # - # See also #busy_timeout. + # See also the mutually exclusive #busy_timeout. def busy_handler( data=nil, &block ) # :yields: data, retries result = @driver.busy_handler( @handle, data, &block ) Error.check( result, self ) end # Indicates that if a request for a resource terminates because that - # resource is busy, SQLite should wait for the indicated number of - # milliseconds before trying again. By default, SQLite does not retry + # resource is busy, SQLite should sleep and retry for up to the indicated + # number of milliseconds. By default, SQLite does not retry # busy resources. To restore the default behavior, send 0 as the # +ms+ parameter. # - # See also #busy_handler. + # See also the mutually exclusive #busy_handler. def busy_timeout( ms ) result = @driver.busy_timeout( @handle, ms ) Error.check( result, self ) -- cgit