@@ -235,14 +235,7 @@ module Fiber : sig
235235 The calling fiber is placed at the head of the run queue, ahead of any previous items. *)
236236
237237 val fork_sub : sw :Switch .t -> on_error :(exn -> unit ) -> (Switch .t -> unit ) -> unit
238- (* * [fork_sub ~sw ~on_error fn] is like [fork], but it creates a new sub-switch for the fiber.
239-
240- This means that you can cancel the child switch without cancelling the parent.
241- This is a convenience function for running {!Switch.run} inside a {!fork}.
242-
243- @param on_error This is called if the fiber raises an exception.
244- If it raises in turn, the parent switch is failed.
245- It is not called if the parent [sw] itself is cancelled. *)
238+ [@@ deprecated "Use Fiber.fork and Switch.run separately instead" ]
246239
247240 val fork_promise : sw :Switch .t -> (unit -> 'a ) -> 'a Promise .or_exn
248241 (* * [fork_promise ~sw fn] schedules [fn ()] to run in a new fiber and returns a promise for its result.
@@ -330,18 +323,6 @@ module Fiber : sig
330323 @param max_fibers Maximum number of fibers to run concurrently *)
331324 end
332325
333- val filter : ?max_fibers : int -> ('a -> bool ) -> 'a list -> 'a list
334- [@@ ocaml.deprecated "Use `Eio.Fiber.List.filter` instead." ]
335-
336- val map : ?max_fibers : int -> ('a -> 'b ) -> 'a list -> 'b list
337- [@@ ocaml.deprecated "Use `Eio.Fiber.List.map instead." ]
338-
339- val filter_map : ?max_fibers : int -> ('a -> 'b option ) -> 'a list -> 'b list
340- [@@ ocaml.deprecated "Use `Eio.Fiber.List.filter_map instead." ]
341-
342- val iter : ?max_fibers : int -> ('a -> unit ) -> 'a list -> unit
343- [@@ ocaml.deprecated "Use `Eio.Fiber.List.iter instead." ]
344-
345326 (* * {2 Fiber-local variables}
346327
347328 Each fiber maintains a map of additional variables associated with it,
0 commit comments