|
115 | 115 | A resolved promise is either "fulfilled" with a value, or "rejected" with |
116 | 116 | an exception. The state of a resolved promise will never change again: a |
117 | 117 | resolved promise is immutable. A resolved promise is basically equivalent |
118 | | - to an [('a, exn) Pervasives.result]. Resolved promises are produced in two |
| 118 | + to an [('a, exn) Stdlib.result]. Resolved promises are produced in two |
119 | 119 | ways: |
120 | 120 |
|
121 | 121 | - [Lwt.return], [Lwt.fail], and related functions, produce "trivial" |
@@ -478,7 +478,7 @@ struct |
478 | 478 |
|
479 | 479 | - The type parameters of ['a resolved_state] guarantee that it is either |
480 | 480 | [Fulfilled _] or [Rejected _]. So, it is equivalent to |
481 | | - [('a, exn) Pervasives.result], and, indeed, should have an identical |
| 481 | + [('a, exn) Stdlib.result], and, indeed, should have an identical |
482 | 482 | memory representation. |
483 | 483 |
|
484 | 484 | - As per the Overview, there are regular callbacks and cancel callbacks. |
@@ -574,7 +574,7 @@ struct |
574 | 574 |
|
575 | 575 | (* Internal name of the public [+'a Lwt.result]. The public name is defined |
576 | 576 | later in the module. This is to avoid potential confusion with |
577 | | - [Pervasives.result]/[Result.result], as the public name would not be |
| 577 | + [Stdlib.result]/[Result.result], as the public name would not be |
578 | 578 | prefixed with [Lwt.] inside this file. *) |
579 | 579 | type +'a lwt_result = ('a, exn) Result.t |
580 | 580 |
|
|
0 commit comments