We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49137c5 commit 2d1820fCopy full SHA for 2d1820f
lib/picos/picos.ocaml5.ml
@@ -392,8 +392,8 @@ module Computation = struct
392
-> unit Effect.t
393
394
let cancel_after computation ~seconds exn bt =
395
- if not (0.0 <= seconds) then error_negative_or_nan ();
396
- Effect.perform (Cancel_after { seconds; exn; bt; computation })
+ if not (0.0 <= seconds) then error_negative_or_nan ()
+ else Effect.perform (Cancel_after { seconds; exn; bt; computation })
397
398
(* BEGIN COMPUTATION COMMON *)
399
0 commit comments