mirror of
https://github.com/ocaml-multicore/eio.git
synced 2025-07-18 00:02:52 -04:00
Compare commits
2 Commits
ad7149dc29
...
19c42eb7a4
Author | SHA1 | Date | |
---|---|---|---|
|
19c42eb7a4 | ||
|
d667d4fa95 |
11
README.md
11
README.md
@ -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 = <
|
type 'a env = 'a constraint 'a = <
|
||||||
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,7 +1786,6 @@ module Status : sig
|
|||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Further Reading
|
## Further Reading
|
||||||
|
|
||||||
- [API reference][Eio API]
|
- [API reference][Eio API]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user