Compare commits

..

No commits in common. "19c42eb7a4b763c6307ccf2400624eb25f9b732a" and "ad7149dc297b856c9bedd692e5809538fd27a4e2" have entirely different histories.

View File

@ -1758,8 +1758,8 @@ In many cases, it's clearer (if a little more verbose) to take the resources you
```ocaml ```ocaml
module Status : sig module Status : sig
val check : val check :
clock:_ Eio.Time.clock -> clock:#Eio.Time.clock ->
net:_ Eio.Net.t -> net:#Eio.Net.t ->
bool bool
end end
``` ```
@ -1776,9 +1776,9 @@ If you define the type explicitly, you can describe why you need each resource t
<!-- $MDX skip --> <!-- $MDX skip -->
```ocaml ```ocaml
module Status : sig module Status : sig
type 'a env = 'a constraint 'a = < type 'a env = <
net : _ Eio.Net.t; (** To connect to the servers *) net : #Eio.Net.t; (** To connect to the servers *)
clock : _ Eio.Time.clock; (** Needed for timeouts *) clock : #Eio.Time.clock; (** Needed for timeouts *)
.. ..
> as 'a > as 'a
@ -1786,6 +1786,7 @@ module Status : sig
end end
``` ```
## Further Reading ## Further Reading
- [API reference][Eio API] - [API reference][Eio API]