instance method fork

Ruby on Rails 6.1.7.10

Since v6.1.7.10 Last seen in v7.1.6

Available in: v6.1.7.10 v7.0.10 v7.1.6

Signature

fork(*)

No documentation comment.

Parameters

args rest
Source
# File activesupport/lib/active_support/fork_tracker.rb, line 6
      def fork(*)
        if block_given?
          super do
            ForkTracker.check!
            yield
          end
        else
          unless pid = super
            ForkTracker.check!
          end
          pid
        end
      end

Defined in activesupport/lib/active_support/fork_tracker.rb line 6 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::ForkTracker::CoreExt

Type at least 2 characters to search.

↑↓ navigate · open · esc close