Skip to content

Commit

Permalink
Merge pull request #65 from ocaml-multicore/fix-trunk
Browse files Browse the repository at this point in the history
Fix build on trunk
  • Loading branch information
Sudha247 authored Mar 1, 2022
2 parents 417bd80 + 0d08956 commit 4ac01e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- ubuntu-latest
- macos-latest
ocaml-compiler:
- 5.00.0+trunk
- 5.0.0+trunk

runs-on: ${{ matrix.os }}

Expand Down
4 changes: 2 additions & 2 deletions lib/task.ml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type 'a promise_state =

type 'a promise = 'a promise_state Atomic.t

type _ eff += Wait : 'a promise * task_chan -> 'a eff
type _ t += Wait : 'a promise * task_chan -> 'a t

let get_pool_data p =
match Atomic.get p with
Expand Down Expand Up @@ -63,7 +63,7 @@ let await pool promise =

let step (type a) (f : a -> unit) (v : a) : unit =
try_with f v
{ effc = fun (type a) (e : a eff) ->
{ effc = fun (type a) (e : a t) ->
match e with
| Wait (p,c) -> Some (fun (k : (a, _) continuation) ->
let rec loop () =
Expand Down

0 comments on commit 4ac01e8

Please sign in to comment.