File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1909,7 +1909,7 @@ module Puma
19091909 thread = server.run # Let's step into this line later.
19101910
19111911 # This line will suspend the main thread execution.
1912- # And the `thread`'s block (which is method `handle_servers`) will be executed in main thread .
1912+ # And the `thread`'s block (which is method `handle_servers`) will be executed.
19131913 # See `Thread#join` for more information.
19141914 # I will show you a simple example for using `thread.join`.
19151915 # Please search `test_thread_join.rb` in this document.
@@ -1991,7 +1991,6 @@ module Puma
19911991 # ...
19921992
19931993 if background # background: true (for this example)
1994-
19951994 # It's important part.
19961995 # Remember puma created a thread here!
19971996 # We will know that the thread's job is waiting for requests.
@@ -2431,7 +2430,7 @@ module Puma
24312430 # The @thread is just the always running Thread created in ` Puma ::Server # run`.
24322431 # Please look at method `Puma::Server#run`.
24332432 # `@thread.join` will suspend the main thread execution.
2434- # And the @thread's code will continue be executed in main thread .
2433+ # And the @thread's code will continue be executed.
24352434 # Because @thread is waiting for incoming request, the next executed code
24362435 # will be `ios = IO.select sockets` in method `handle_servers`.
24372436 @thread .join if @thread && sync
You can’t perform that action at this time.
0 commit comments