* Return the result of the PRVALUE macro on the promise */
| 48 | * Return the result of the PRVALUE macro on the promise |
| 49 | */ |
| 50 | SEXP value() const{ |
| 51 | if (!was_evaluated()) throw unevaluated_promise(); |
| 52 | return PRVALUE(Storage::get__()); |
| 53 | } |
| 54 | |
| 55 | bool was_evaluated() const { |
| 56 | #if R_VERSION < R_Version(4,6,0) |
nothing calls this directly
no test coverage detected