File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -519,11 +519,11 @@ private module ConsoleUtils
519
519
@@read_requests = Deque (ReadRequest ).new
520
520
@@bytes_read = Deque (Int32 ).new
521
521
@@mtx = ::Thread ::Mutex .new
522
- { % if flag?( :execution_context ) % }
523
- @@reader_thread = :: Fiber :: ExecutionContext :: Isolated .new( " READER-LOOP " ) { reader_loop }
524
- { % else % }
525
- @@reader_thread = :: Thread .new { reader_loop }
526
- { % end % }
522
+
523
+ # Start a dedicated thread to block on reads from the console. Doesn't need an
524
+ # isolated execution context because there's no fiber communication (only
525
+ # thread communication) and only blocking I/O within the thread.
526
+ @@reader_thread = :: Thread .new { reader_loop }
527
527
528
528
private def self.reader_loop
529
529
while true
You can’t perform that action at this time.
0 commit comments