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
1909
1909
thread = server.run # Let's step into this line later.
1910
1910
1911
1911
# 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.
1913
1913
# See `Thread#join` for more information.
1914
1914
# I will show you a simple example for using `thread.join`.
1915
1915
# Please search `test_thread_join.rb` in this document.
@@ -1991,7 +1991,6 @@ module Puma
1991
1991
# ...
1992
1992
1993
1993
if background # background: true (for this example)
1994
-
1995
1994
# It's important part.
1996
1995
# Remember puma created a thread here!
1997
1996
# We will know that the thread's job is waiting for requests.
@@ -2431,7 +2430,7 @@ module Puma
2431
2430
# The @thread is just the always running Thread created in ` Puma ::Server # run`.
2432
2431
# Please look at method `Puma::Server#run`.
2433
2432
# `@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.
2435
2434
# Because @thread is waiting for incoming request, the next executed code
2436
2435
# will be `ios = IO.select sockets` in method `handle_servers`.
2437
2436
@thread .join if @thread && sync
You can’t perform that action at this time.
0 commit comments