aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/threading_and_code_execution.md
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2017-11-20 19:19:00 +0530
committerVipul A M <vipulnsward@gmail.com>2017-11-20 19:19:00 +0530
commit00b3d9f52f965cad6e653ceb8f5c21a96742c55a (patch)
treeb5cf59968c2e2dfd1796c7011358c4fbdad68300 /guides/source/threading_and_code_execution.md
parentc9ee4e729e70a98b1d1db04edc95cb6c3b793f1f (diff)
downloadrails-00b3d9f52f965cad6e653ceb8f5c21a96742c55a.tar.gz
rails-00b3d9f52f965cad6e653ceb8f5c21a96742c55a.tar.bz2
rails-00b3d9f52f965cad6e653ceb8f5c21a96742c55a.zip
Pass over Execution guide[ci skip]
Diffstat (limited to 'guides/source/threading_and_code_execution.md')
-rw-r--r--guides/source/threading_and_code_execution.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/threading_and_code_execution.md b/guides/source/threading_and_code_execution.md
index 1c7d61a29c..3d3d31b97e 100644
--- a/guides/source/threading_and_code_execution.md
+++ b/guides/source/threading_and_code_execution.md
@@ -57,7 +57,7 @@ In a default Rails application, the Executor callbacks are used to:
Prior to Rails 5.0, some of these were handled by separate Rack middleware
classes (such as `ActiveRecord::ConnectionAdapters::ConnectionManagement`), or
directly wrapping code with methods like
-`ActiveRecord::Base.connection_pool.with_connection do`. The Executor replaces
+`ActiveRecord::Base.connection_pool.with_connection`. The Executor replaces
these with a single more abstract interface.
### Wrapping application code
@@ -93,7 +93,7 @@ with an `executor` option. Despite the name, it is unrelated.
The Executor is safely re-entrant; if it is already active on the current
thread, `wrap` is a no-op.
-If it's impractical to physically wrap the application code in a block (for
+If it's impractical to wrap the application code in a block (for
example, the Rack API makes this problematic), you can also use the `run!` /
`complete!` pair:
@@ -266,7 +266,7 @@ end
To prevent this deadlock, the outer thread can `permit_concurrent_loads`. By
calling this method, the thread guarantees it will not dereference any
possibly-autoloaded constant inside the supplied block. The safest way to meet
-that promise is to put it as close as possible to the blocking call only:
+that promise is to put it as close as possible to the blocking call:
```ruby
Rails.application.executor.wrap do