lib/volt/page/tasks.rb in volt-0.8.24 vs lib/volt/page/tasks.rb in volt-0.8.26.beta1

- old
+ new

@@ -1,8 +1,8 @@ module Volt # The tasks class provides an interface to call tasks on - # the backend server. + # the backend server. This class is setup as page.task (as a singleton) class Tasks def initialize(page) @page = page @promise_id = 0 @promises = {} @@ -19,10 +19,9 @@ # Track the callback promise = Promise.new @promises[promise_id] = promise # TODO: Timeout on these callbacks - @page.channel.send_message([promise_id, class_name, method_name, meta_data, *args]) promise end