Skip to content

Commit

Permalink
Improve at_fork_monkey_patch.rbs
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Aug 14, 2024
1 parent 2ee80c4 commit 6cb7c4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sig/datadog/core/utils/at_fork_monkey_patch.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ module Datadog
module AtForkMonkeyPatch
AT_FORK_CHILD_BLOCKS: ::Array[untyped]

def self.supported?: () -> untyped
def self.supported?: () -> (false | true)

def self.apply!: () -> (false | true)

def self.run_at_fork_blocks: (untyped stage) -> untyped
def self.run_at_fork_blocks: (Symbol stage) -> void

def self.at_fork: (untyped stage) ?{ () -> untyped } -> true
def self.at_fork: (Symbol stage) { () -> untyped } -> true

module KernelMonkeyPatch
def fork: () ?{ () -> untyped } -> untyped
end

module ProcessMonkeyPatch
def _fork: () -> untyped
def _fork: () -> Integer

def daemon: (*untyped args) -> untyped
end
Expand Down

0 comments on commit 6cb7c4c

Please sign in to comment.