class AsyncPartial::AsyncResult

Public Class Methods

new(thread) click to toggle source
# File lib/async_partial.rb, line 67
def initialize(thread)
  @thread = thread
end

Public Instance Methods

html_safe?() click to toggle source
# File lib/async_partial.rb, line 75
def html_safe?
  true
end
nil?() click to toggle source
# File lib/async_partial.rb, line 71
def nil?
  false
end
to_s() click to toggle source
# File lib/async_partial.rb, line 79
def to_s
  self
end
value() click to toggle source
# File lib/async_partial.rb, line 83
def value
  val = @thread.value
  @thread.kill
  val
end