mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-10 13:14:05 -05:00
fix warning
This commit is contained in:
parent
052b70027a
commit
def384b4f8
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,3 @@
|
|||
module A = Atomic_
|
||||
|
||||
type suspension = (unit, exn * Printexc.raw_backtrace) result -> unit
|
||||
type task = unit -> unit
|
||||
|
||||
|
|
@ -9,6 +7,8 @@ type suspension_handler = { handle: run:(task -> unit) -> suspension -> unit }
|
|||
[@@@ifge 5.0]
|
||||
[@@@ocaml.alert "-unstable"]
|
||||
|
||||
module A = Atomic_
|
||||
|
||||
type _ Effect.t += Suspend : suspension_handler -> unit Effect.t
|
||||
|
||||
let[@inline] suspend h = Effect.perform (Suspend h)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue