quickjs_runtime::quickjs_utils::promises

Function add_promise_reactions_q

source
pub fn add_promise_reactions_q(
    context: &QuickJsRealmAdapter,
    promise_obj_ref: &QuickJsValueAdapter,
    then_func_obj_ref_opt: Option<QuickJsValueAdapter>,
    catch_func_obj_ref_opt: Option<QuickJsValueAdapter>,
    finally_func_obj_ref_opt: Option<QuickJsValueAdapter>,
) -> Result<(), JsError>