Skip to content

Commit f85e014

Browse files
authored
Update flow.md (#6)
* Update flow.md * Update flow.md
1 parent f5475e8 commit f85e014

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

topics/flow.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,7 @@ try {
9393
alert( e);
9494
}
9595
```
96+
97+
---
98+
Create `promisify` function which takes node-style (error-first) function and converts it into promise-based function.
99+
Instead of calling callback with error, data it return promise which resolves/rejectes. It worth to check if function save context for original function (`this`)

0 commit comments

Comments
 (0)