module Fear::Awaitable

An object which may eventually be completed and awaited using blocking methods.

@abstract @api private @see Fear::Await

Public Instance Methods

__ready__(_at_most) click to toggle source

Await completed state of this Awaitable

@param _at_most [Fixnum] maximum timeout in seconds @return [Fear::Awaitable] @raise [Timeout::Error]

# File lib/fear/awaitable.rb, line 15
def __ready__(_at_most)
  raise NotImplementedError
end
__result__(_at_most) click to toggle source

Await and return the result of this Awaitable

@param _at_most [Fixnum] maximum timeout in seconds @return [any] @raise [Timeout::Error]

# File lib/fear/awaitable.rb, line 24
def __result__(_at_most)
  raise NotImplementedError
end