class Promise::Deferred(Input)
- Promise::Deferred(Input)
- Reference
- Object
Defined in:
promise/deferred.crConstructors
Instance Method Summary
-
#inspect(io : IO) : Nil
We need to implement this as
@reference
could be uninitialized - #pending(resolution : Proc(Input, Nil), rejection : Proc(Exception, Exception)) : Nil
- #ref(value : Input | DeferredPromise(Input) | RejectedPromise(Input) | ResolvedPromise(Input)) : DeferredPromise(Input) | RejectedPromise(Input) | ResolvedPromise(Input)
- #reject(reason : String | Exception)
- #resolve(value)
- #resolved?
Instance methods inherited from class Object
__check_for_promise__
__check_for_promise__
Macros inherited from class Object
__check_if_promise__
__check_if_promise__
Constructor Detail
Instance Method Detail
def ref(value : Input | DeferredPromise(Input) | RejectedPromise(Input) | ResolvedPromise(Input)) : DeferredPromise(Input) | RejectedPromise(Input) | ResolvedPromise(Input)
#