method

new

Importance_0
v8.1.1 - Show latest stable - 0 notes - Class: MirrorService
new(primary:, mirrors:) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activestorage/lib/active_storage/service/mirror_service.rb, line 30
    def initialize(primary,, mirrors))
      @primary, @mirrors = primary, mirrors
      @executor = Concurrent::ThreadPoolExecutor.new(
        name: "ActiveStorage-mirror-service",
        min_threads: 1,
        max_threads: mirrors.size,
        max_queue: 0,
        fallback_policy: :caller_runs,
        idle_time: 60
      )
    end
Register or log in to add new notes.