lib/never_block/db/fibered_postgres_connection.rb
# Assuming the use of NeverBlock fiber extensions and that the exec is run in
# the context of a fiber. One that have the value :neverblock set to true.
# All neverblock IO classes check this value, setting it to false will force
# the execution in a blocking way.
Assuming the use of NeverBlock fiber extensions and that the exec is run in
the context of a fiber. One that have the value :neverblock set to true.
All neverblock IO classes check this value, setting it to false will force
the execution in a blocking way.
Assuming the use of NeverBlock fiber extensions and that the exec is run in the context of a fiber . One that have the value : neverblock set to true . All neverblock IO classes check this value setting it to false will force the execution in a blocking way .
def exec(sql)
        if Fiber.respond_to? :current and Fiber.current[:neverblock]		      
          self.send_query sql
          @fiber = Fiber.current		      
          Fiber.yield 
        else		      
          super(sql)
        end		
      end
def exec ( sql ) if Fiber . respond_to? :current and Fiber . current [ :neverblock ] self . send_query sql @fiber = Fiber . current Fiber . yield else super ( sql ) end end
Assuming the use of NeverBlock fiber extensions and that the exec is run in
the context of a fiber.
Assuming the use of NeverBlock fiber extensions and that the exec is run in the context of a fiber .
sql
<not_specific>