class Pantry::Communication::FileService::UploadInfo
Informational object for keeping track of file upload progress and important information.
Attributes
file_uuid[RW]
The file session identity from the Receiver
receiver_uuid[RW]
Identity of the Receiver we’re sending a file to
Public Class Methods
new()
click to toggle source
# File lib/pantry/communication/file_service/file_progress.rb, line 15 def initialize @finish_future = Celluloid::Future.new end
Public Instance Methods
finished!()
click to toggle source
# File lib/pantry/communication/file_service/file_progress.rb, line 24 def finished! @finish_future.signal(OpenStruct.new(:value => self)) end
wait_for_finish(timeout = nil)
click to toggle source
Block and wait for the file upload to finish
# File lib/pantry/communication/file_service/file_progress.rb, line 20 def wait_for_finish(timeout = nil) @finish_future.value(timeout) end