mirror of
https://github.com/ocaml-multicore/eio.git
synced 2025-07-17 00:01:11 -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
|
||||
module Status : sig
|
||||
val check :
|
||||
clock:#Eio.Time.clock ->
|
||||
net:#Eio.Net.t ->
|
||||
clock:_ Eio.Time.clock ->
|
||||
net:_ Eio.Net.t ->
|
||||
bool
|
||||
end
|
||||
```
|
||||
@ -1776,9 +1776,9 @@ If you define the type explicitly, you can describe why you need each resource t
|
||||
<!-- $MDX skip -->
|
||||
```ocaml
|
||||
module Status : sig
|
||||
type 'a env = <
|
||||
net : #Eio.Net.t; (** To connect to the servers *)
|
||||
clock : #Eio.Time.clock; (** Needed for timeouts *)
|
||||
type 'a env = 'a constraint 'a = <
|
||||
net : _ Eio.Net.t; (** To connect to the servers *)
|
||||
clock : _ Eio.Time.clock; (** Needed for timeouts *)
|
||||
..
|
||||
> as 'a
|
||||
|
||||
@ -1786,7 +1786,6 @@ module Status : sig
|
||||
end
|
||||
```
|
||||
|
||||
|
||||
## Further Reading
|
||||
|
||||
- [API reference][Eio API]
|
||||
|
Loading…
x
Reference in New Issue
Block a user