Returns an instance that encapsulates the given Throwable as failure.
Returns an instance that encapsulates the given value as successful value.