Skip to content

Commit

Permalink
Merge pull request ocaml-multicore#614 from talex5/readme-env
Browse files Browse the repository at this point in the history
Update README section about env
  • Loading branch information
talex5 committed Aug 31, 2023
2 parents ad7149d + d667d4f commit 19c42eb
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Expand Up @@ -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
```
Expand All @@ -1776,17 +1776,16 @@ 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
val check : _ env -> bool
end
```


## Further Reading

- [API reference][Eio API]
Expand Down

0 comments on commit 19c42eb

Please sign in to comment.