Class: TelestreamCloud::Tts::Uploader::ConcurrentFileUploadSession
- Inherits:
-
FileUploadSession
- Object
- FileUploadSession
- TelestreamCloud::Tts::Uploader::ConcurrentFileUploadSession
- Defined in:
- lib/telestream_cloud_tts/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::Tts::Uploader::FileUploadSession
Instance Method Details
#upload_chunks(indexes) ⇒ Object
134 135 136 137 138 139 140 141 |
# File 'lib/telestream_cloud_tts/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 |