lib/pakyow/ui/framework.rb in pakyow-ui-1.0.1 vs lib/pakyow/ui/framework.rb in pakyow-ui-1.0.2
- old
+ new
@@ -1,8 +1,8 @@
# frozen_string_literal: true
-require "concurrent/executor/thread_pool_executor"
+require "concurrent/executor/single_thread_executor"
require "pakyow/framework"
require "pakyow/application/helpers/ui"
@@ -74,14 +74,11 @@
# @api private
attr_reader :ui_executor
unfreezable :ui_executor
after "initialize" do
- @ui_executor = Concurrent::ThreadPoolExecutor.new(
+ @ui_executor = Concurrent::SingleThreadExecutor.new(
auto_terminate: false,
- min_threads: 1,
- max_threads: 10,
- max_queue: 0
)
end
end
end
end