'How to use ruby-pg with async gem in Rails

With the new PR https://github.com/ged/ruby-pg/pull/397 in ruby-pg, it seems that we could use non-blocking methods with async gems in Ruby 3.0. Could we have one example to show the non-blocking way?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source