Class: TelestreamCloud::Qc::Uploader::ConcurrentFileUploadSession
- Inherits:
-
FileUploadSession
- Object
- FileUploadSession
- TelestreamCloud::Qc::Uploader::ConcurrentFileUploadSession
- Defined in:
- lib/telestream_cloud_qc/uploader.rb
Instance Attribute Summary
Attributes inherited from FileUploadSession
Instance Method Summary collapse
Methods inherited from FileUploadSession
#initialize, #params, #success?, #upload!
Constructor Details
This class inherits a constructor from TelestreamCloud::Qc::Uploader::FileUploadSession
Instance Method Details
#upload_chunks(indexes) ⇒ Object
134 135 136 137 138 139 140 141 |
# File 'lib/telestream_cloud_qc/uploader.rb', line 134 def upload_chunks(indexes) indexes.map do |index| Concurrent::Future.execute(executor: uploader.thread_pool) do send_chunk(index) end end.map(&:value) end |