Module: Fear::Awaitable Abstract Private

Included in:
Future
Defined in:
lib/fear/awaitable.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

This module is abstract.

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

See Also:

Instance Method Summary collapse

Instance Method Details

#__ready__(_at_most) ⇒ Fear::Awaitable

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Await completed state of this Awaitable

Parameters:

  • _at_most (Fixnum)

    maximum timeout in seconds

Returns:

Raises:

  • (Timeout::Error)


15
16
17
# File 'lib/fear/awaitable.rb', line 15

def __ready__(_at_most)
  raise NotImplementedError
end

#__result__(_at_most) ⇒ any

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Await and return the result of this Awaitable

Parameters:

  • _at_most (Fixnum)

    maximum timeout in seconds

Returns:

  • (any)

Raises:

  • (Timeout::Error)


24
25
26
# File 'lib/fear/awaitable.rb', line 24

def __result__(_at_most)
  raise NotImplementedError
end