This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import os | |
| import sys | |
| import boto3 | |
| from PySide2.QtCore import QRunnable, QObject, QThreadPool, Signal, Slot | |
| from PySide2.QtWidgets import QMainWindow, QVBoxLayout, QProgressBar, QPushButton, QWidget, QApplication | |
| class TestWindow(QMainWindow): | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | require 'webrick' | |
| # How much of this is solved by frozen string literal? | |
| Ractor.make_shareable(WEBrick::Config::HTTP) | |
| Ractor.make_shareable(WEBrick::LF) | |
| Ractor.make_shareable(WEBrick::CRLF) | |
| Ractor.make_shareable(WEBrick::HTTPRequest::BODY_CONTAINABLE_METHODS) | |
| Ractor.make_shareable(WEBrick::HTTPStatus::StatusMessage) | |
| # To pick up changes from https://github.com/ruby/ruby/pull/4007 | |
| Object.send(:remove_const, :URI) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # See also: https://noteflakes.com/articles/2021-11-13-real-world-polyphony-chat | |
| require 'polyphony' | |
| server = spin do | |
| server_socket = TCPServer.new('0.0.0.0', 1234) | |
| server_socket.accept_loop do |s| | |
| spin { handle_session(s) } | |
| end | |
| end | 
OlderNewer