Function quickjs_runtime::quickjs_utils::promises::add_promise_reactions
source · [−]pub unsafe fn add_promise_reactions(
context: *mut JSContext,
promise_obj_ref: &JSValueRef,
then_func_obj_ref_opt: Option<JSValueRef>,
catch_func_obj_ref_opt: Option<JSValueRef>,
finally_func_obj_ref_opt: Option<JSValueRef>
) -> Result<(), JsError>
Expand description
Safety
When passing a context pointer please make sure the corresponding QuickJsContext is still valid