Async Ruby on Rails

by nf3on 6/8/24, 6:58 AMwith 1 comments
by Alifatiskon 6/8/24, 11:11 AM

Very interesting post, but one question is it really necessary to wrap it in a Sync block? Isn't it synchronous outside the async block?

    Sync do
      5.times.map do
        Async do
          ...
        end
      end.map(&:wait)
    end