Thunk.tryForce

ThunkResult!T tryForce()()

Force the computation, reporting recoverable exceptions as values.

Only Exception is caught, including a failure copying a successful payload. Such copy failures do not poison the cache. Error and other non-Exception throwables propagate. Attributes are inferred; D's nothrow attribute does not prohibit escaping Errors.

Returns

ThunkResult, successful with the value or Success().

Throws

Any non-Exception throwable from forcing or result construction.