阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js N-API napi_reject_deferred

      Node.js N-API napi_reject_deferred

      新增于: v8.5.0 N-API version: 1 napi_status napi_resolve_deferred(napi_env env, napi_deferred deferred, napi_value resolution); [in] env: The environment that the API is invoked under. [in] deferred: The deferred object whose associated promise to resolve. [in] resolution: The value with which to resolve the promise. This API resolves a JavaScript promise by way of the deferred object with which it is associated. Thus, it can only be used to resolve JavaScript promises for which the corresponding deferred object is available. This effectively means that the promise must have been created using napi_create_promise() and the deferred object returned from that call must have been retained in order to be passed to this API.

      The deferred object is freed upon successful completion.


      更多内容请参考:Node.js N-API,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录