quickjs_runtime::quickjs_utils::promises

Function is_promise

source
pub unsafe fn is_promise(
    context: *mut JSContext,
    obj_ref: &QuickJsValueAdapter,
) -> bool
Expand description

ยงSafety

When passing a context pointer please make sure the corresponding QuickJsContext is still valid