will be removed in 9.0.0.
You can use safeTry without this method.
safeTry
safeTry(async function* () { const okValue = yield* yourResult}) Copy
safeTry(async function* () { const okValue = yield* yourResult})
Emulates Rust's ? operator in safeTry's body. See also safeTry.
?
Attaches callbacks for the resolution and/or rejection of the Promise.
Optional
A Promise for the completion of which ever callback is executed.
Static
Deprecated
will be removed in 9.0.0.
You can use
safeTry
without this method.Example
Emulates Rust's
?
operator insafeTry
's body. See alsosafeTry
.