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.
Instance Method Summary collapse
-
#__ready__(_at_most) ⇒ Fear::Awaitable
private
Await
completed
state of thisAwaitable
. -
#__result__(_at_most) ⇒ any
private
Await and return the result of this
Awaitable
.
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
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
24 25 26 |
# File 'lib/fear/awaitable.rb', line 24 def __result__(_at_most) raise NotImplementedError end |