Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8b3882f

Browse files
committed
Add more information.
1 parentbad483c commit8b3882f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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.joinif@thread&& sync

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp