From 4c84051e854ee0a4afaa0b2fa17e4e08eac4db18 Mon Sep 17 00:00:00 2001 From: Julien Portalier Date: Fri, 4 Oct 2024 15:39:13 +0200 Subject: [PATCH] Fix: mark .default methods as protected --- src/multi_threaded.cr | 2 +- src/single_threaded.cr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/multi_threaded.cr b/src/multi_threaded.cr index cb31122..85d60ae 100644 --- a/src/multi_threaded.cr +++ b/src/multi_threaded.cr @@ -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 diff --git a/src/single_threaded.cr b/src/single_threaded.cr index 94a4362..ecc99fc 100644 --- a/src/single_threaded.cr +++ b/src/single_threaded.cr @@ -24,7 +24,7 @@ module ExecutionContext @tick : Int32 = 0 # :nodoc: - def self.default : self + protected def self.default : self new("DEFAULT", hijack: true) end