You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,8 @@ This piece of code is an assertion, an error will be thrown if something goes wr
40
40
npm install --save handle-io
41
41
```
42
42
43
+
------
44
+
43
45
### IO
44
46
45
47
io is just a wrapper for functions and arguments.
@@ -82,6 +84,8 @@ log.run();
82
84
83
85
The idea of this library is to apply an **IO** function inside a structure called **handler**.
84
86
87
+
------
88
+
85
89
### Handlers
86
90
A **handler** is a wrapped pure [generator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator) which just apply some **IO** function and/or **handler**.
87
91
@@ -142,6 +146,8 @@ Likewise, don't use handlers' **.run()** everywhere in your codebase.
142
146
143
147
**handlers** are combinable together: **you can yield a handler**.
144
148
149
+
------
150
+
145
151
### Promise support
146
152
147
153
`handle-io` supports promises and allows you to create asynchronous IO.
0 commit comments