File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ behave as the `first` of the two following lines that terminates:
173
173
174
174
Functions in Eliom and Js_of_ocaml which do not implement just a
175
175
computation or direct side effect, but rather wait for user activity,
176
- or file system access, or need a unforseeable amount of time to return
176
+ or file system access, or need a unforeseeable amount of time to return
177
177
are defined * with Lwt* ; instead of returning a value of type ` a `
178
178
they return an Lwt thread of type ` a Lwt.t ` .
179
179
@@ -232,7 +232,7 @@ run. Cooperative functions return a value in the Lwt monad
232
232
` Lwt.bind ` and ` Lwt.return ` do not introduce cooperation points.
233
233
234
234
In our example, the function ` Lwt_js_events.mouseup ` may introduce
235
- a cooperation point, because it is unforseeable when this event
235
+ a cooperation point, because it is unforeseeable when this event
236
236
happens. That's why it returns a value in the Lwt monad.
237
237
238
238
Using cooperative threads has a huge advantage: given that you know
You can’t perform that action at this time.
0 commit comments