lib/mongo/cluster/reapers/cursor_reaper.rb
# Unregister a cursor id, indicating that it's no longer active.
#
# @example Unregister a cursor.
#   cursor_reaper.unregister_cursor(id)
#
# @param [ Integer ] id The id of the cursor to unregister.
#
# @api private
#
# @since 2.3.0
Unregister a cursor id, indicating that it's no longer active.
Unregister a cursor id indicating that it ' s no longer active .
def unregister_cursor(id)
        if id.nil?
          raise ArgumentError, 'unregister_cursor called with nil cursor_id'
        end
        if id == 0
          raise ArgumentError, 'unregister_cursor called with cursor_id=0'
        end
        @mutex.synchronize do
          @active_cursor_ids.delete(id)
        end
      end
def unregister_cursor ( id ) if id . nil? raise ArgumentError , 'unregister_cursor called with nil cursor_id' end if id == 0 raise ArgumentError , 'unregister_cursor called with cursor_id=0' end @mutex . synchronize do @active_cursor_ids . delete ( id ) end end
Unregister a cursor id, indicating that it's no longer active.
Unregister a cursor id indicating that it ' s no longer active .
id
<not_specific>
<not_specific>
id The id of the cursor to unregister.
id The id of the cursor to unregister .
example
Unregister a cursor. cursor_reaper.unregister_cursor(id)
Unregister a cursor . cursor_reaper . unregister_cursor ( id )
api
None
since
None