Skip to content

Commit

Permalink
Fix: mark .default methods as protected
Browse files Browse the repository at this point in the history
  • Loading branch information
ysbaddaden committed Oct 4, 2024
1 parent 1955ad2 commit 4c84051
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/multi_threaded.cr
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module ExecutionContext
@spinning = Atomic(Int32).new(0)

# :nodoc:
def self.default(size : Int32) : self
protected def self.default(size : Int32) : self
new("DEFAULT", 1..size, hijack: true)
end

Expand Down
2 changes: 1 addition & 1 deletion src/single_threaded.cr
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module ExecutionContext
@tick : Int32 = 0

# :nodoc:
def self.default : self
protected def self.default : self
new("DEFAULT", hijack: true)
end

Expand Down

0 comments on commit 4c84051

Please sign in to comment.