-
I'm excited about your promisified modal solution and thinking of getting this to work with [Headlessui](https://headlessui.com/v1/vue/dialog). Especially the modal and drawer components. Would you th…
-
The geolocation API requires use of callbacks rather than being promise based like modern APIs. However, there is room to offer a promise alternative. If we make the callbacks optional, in the case wh…
-
Hello! One of my lib requires util.promisify. The project is running inside browser. I am not sure the question is related to [browsery](https://github.com/panates/browsery) itself, but could you port…
-
### Describe the bug
I'm trying to reproduce [`resolves` example](https://vitest.dev/api/expect.html#resolves). The Chai style assertion throws strange Typescript error:
![image](https://user-images…
-
手动实现一个promisify函数的意思是:我们把一个异步请求的函数,封装成一个可以具有 then方法的函数,并且在then方法中返回异步方法执行结果的这么一个函数
1. 具有 then 方法
1. then 方法里返回异步接口执行结果
```js
// 首先定一个需要进行 promisify 的函数
function asyncFn(a, b, callback) {
…
-
The promisify function (Chapter04/01_promisify.js) contains a reference to the `arguments` variable in the callback which happens to be an arrow function (with lexical `arguments`).
Please find attac…
ghost updated
6 years ago
-
### Pre-flight checklist
- [X] I have read the [contribution documentation](https://github.com/electron/forge/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [code of conduct…
-
- vulcan-dataset/CWE-78/1512
```js
var _, child_process, utils;
_ = require('lodash');
child_process = require('child_process');
utils = require('./utils');
/**
* @summary Unmount …
-
```
@new PouchDB(url, ^)!
```
Doesn't work
-
Have you considered a promise api instead of callback style?