We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8b9a83 commit 27a5607Copy full SHA for 27a5607
src/thread/fiber.ml
@@ -1,19 +1,6 @@
1
include Moonpool_fib
2
module FLS = Moonpool_fib.Fls
3
4
-(** Access the context (inheritable hmap) *)
5
-let k_rcontext : Hmap.t FLS.t = FLS.k_local_hmap
6
-
7
-(** Access the current rcontext *)
8
-let[@inline] get_rcontext () : Hmap.t = FLS.get ~default:Hmap.empty k_rcontext
9
10
-let[@inline] get_from_rcontext (k : 'a Hmap.key) : 'a option =
11
- FLS.get_in_local_hmap_opt k
12
13
-(** Add some k/v to the context *)
14
-let[@inline] add_to_rcontext (k : 'a Hmap.key) (x : 'a) : unit =
15
- FLS.set_in_local_hmap k x
16
17
let add_on_cancel' fib k : unit = ignore (add_on_cancel fib k : cancel_handle)
18
let add_on_cancel_any' (Any fib) k : unit = add_on_cancel' fib k
19
0 commit comments