File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -380,11 +380,7 @@ module Computation = struct
380
380
381
381
let attach_canceler ~from ~into =
382
382
let canceler = canceler ~from ~into in
383
- if try_attach from canceler then canceler
384
- else begin
385
- check from;
386
- error_returned ()
387
- end
383
+ if try_attach from canceler then canceler else error_returned (check from)
388
384
389
385
(* END COMPUTATION BOOTSTRAP *)
390
386
@@ -493,7 +489,7 @@ module Fiber = struct
493
489
let success = Trigger. on_signal trigger x y resume in
494
490
if success then success
495
491
else begin
496
- Computation. detach computation trigger ;
492
+ Computation. unsafe_unsuspend computation Backoff. default |> ignore ;
497
493
false
498
494
end
499
495
else if Computation. is_canceled computation then begin
@@ -600,7 +596,7 @@ module Fiber = struct
600
596
(* BEGIN FIBER COMMON *)
601
597
602
598
module Maybe = struct
603
- let [@ inline never] not_a_fiber () = invalid_arg " not a fiber"
599
+ let [@ inline never] not_a_fiber _ = invalid_arg " not a fiber"
604
600
605
601
type t = T : [< `Nothing | `Fiber ] tdt -> t [@@ unboxed]
606
602
@@ -632,7 +628,7 @@ module Fiber = struct
632
628
| T (Fiber _ as t ) -> check t
633
629
634
630
let [@ inline] to_fiber = function
635
- | T Nothing -> not_a_fiber ()
631
+ | T Nothing as any -> not_a_fiber any
636
632
| T (Fiber _ as t ) -> t
637
633
end
638
634
You can’t perform that action at this time.
0 commit comments