我不認爲它做到了!
[email protected]:~/tmp$ git clone [email protected]:rails/rails.git
Cloning into 'rails'...
remote: Finding bitmap roots...
remote: Counting objects: 394168, done.
remote: Compressing objects: 100% (110181/110181), done.
remote: Total 394168 (delta 286616), reused 387911 (delta 280577)
Receiving objects: 100% (394168/394168), 93.88 MiB | 1.61 MiB/s, done.
Resolving deltas: 100% (286616/286616), done.
[email protected]:~/tmp$ cd rails/
'async'的唯一提及在active_record,action_view/actionpack或指南下。
[email protected]:~/tmp/rails$ grep async . -r --exclude=*.js
Binary file ./.git/objects/pack/pack-2684dbd9d8af432c397e766784fb5ca058fec4c4.pack matches
./.git/packed-refs:61e31f2c8744eccd07c23d3fad2db9ea8504909b refs/remotes/origin/async
Binary file ./.git/index matches
./activerecord/test/cases/locking_test.rb:# (See exec vs. async_exec in the PostgreSQL adapter.)
./activerecord/lib/active_record/explain.rb: # asynchronously by the subscriber and returned.
./activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb: result_as_array @connection.async_exec(sql)
./activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb: @connection.async_exec(sql)
./activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: log(sql, name, binds) { @connection.async_exec(sql) }
./actionview/lib/action_view/helpers/tag_helper.rb: autoplay controls loop selected hidden scoped async
./guides/source/security.md:NOTE: _Make sure file uploads don't overwrite important files, and process media files asynchronously._
./guides/source/security.md:The solution to this is best to _process media files asynchronously_: Save the media file and schedule a processing request in the database. A second process will handle the processing of the file in the background.
./guides/source/form_helpers.md:Unlike other forms making an asynchronous file upload form is not as simple as providing `form_for` with `remote: true`. With an Ajax form the serialization is done by JavaScript running inside the browser and since JavaScript cannot read files from your hard drive the file cannot be uploaded. The most common workaround is to use an invisible iframe that serves as the target for the form submission.
./actionpack/test/controller/live_stream_test.rb: def test_async_stream
這很奇怪,因爲當我發送電子郵件時,我可以看到我的頁面正在加載並正在等待電子郵件被髮送 – Quantico
我發佈了更新。顯然,沒有原生的帶外ActionMailer功能。不幸的是,你可能不得不用工人排隊系統來解決問題。 –