platform/node/src/node_map.cpp
void NodeMap::Cancel(const Nan::FunctionCallbackInfo<v8::Value>& info) {
    auto nodeMap = Nan::ObjectWrap::Unwrap<NodeMap>(info.Holder());

    if (!nodeMap->map) return Nan::ThrowError(releasedMessage());
    if (!nodeMap->req) return Nan::ThrowError("No render in progress");

    try {
        nodeMap->cancel();
    } catch (const std::exception &ex) {
        return Nan::ThrowError(ex.what());
    }

    info.GetReturnValue().SetUndefined();
}
/**
 * Cancel an ongoing render request. The callback will be called with
 * the error set to "Canceled". Will throw if no rendering is in progress.
 * @name cancel
 * @returns {undefined}
 */
Cancel an ongoing render request. The callback will be called with
the error set to "Canceled". Will throw if no rendering is in progress.
@name cancel
@returns {undefined}
Cancel an ongoing render request . The callback will be called with the error set to " Canceled " . Will throw if no rendering is in progress . @name cancel @returns { undefined }
void NodeMap::Cancel(const Nan::FunctionCallbackInfo<v8::Value>& info) {
    auto nodeMap = Nan::ObjectWrap::Unwrap<NodeMap>(info.Holder());
    if (!nodeMap->map) return Nan::ThrowError(releasedMessage());
    if (!nodeMap->req) return Nan::ThrowError("No render in progress");
    try {
        nodeMap->cancel();
    } catch (const std::exception &ex) {
        return Nan::ThrowError(ex.what());
    }
    info.GetReturnValue().SetUndefined();
}
void NodeMap :: Cancel ( const Nan :: FunctionCallbackInfo < v8 :: Value > & info ) { auto nodeMap = Nan :: ObjectWrap :: Unwrap < NodeMap > ( info . Holder ( ) ) ; if ( ! nodeMap -> map ) return Nan :: ThrowError ( releasedMessage ( ) ) ; if ( ! nodeMap -> req ) return Nan :: ThrowError ( " " ) ; try { nodeMap -> cancel ( ) ; } catch ( const std :: exception & ex ) { return Nan :: ThrowError ( ex . what ( ) ) ; } info . GetReturnValue ( ) . SetUndefined ( ) ; }
Cancel an ongoing render request.
Cancel an ongoing render request .