mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-06 03:05:30 -05:00
fix
This commit is contained in:
parent
4195d4d61c
commit
9d392b1ba6
1 changed files with 3 additions and 3 deletions
|
|
@ -207,9 +207,9 @@ let spawn_link ?protect f : _ t =
|
||||||
| Some (Any parent) -> spawn_link_ ?protect parent f
|
| Some (Any parent) -> spawn_link_ ?protect parent f
|
||||||
|
|
||||||
let spawn_top_or_link ?protect ~on f : _ t =
|
let spawn_top_or_link ?protect ~on f : _ t =
|
||||||
match Task_local_storage.get k_current_fiber with
|
match Task_local_storage.get_opt k_current_fiber with
|
||||||
| None -> spawn_top ~on f
|
| Some (Some (Any parent)) -> spawn_link_ ?protect parent f
|
||||||
| Some (Any parent) -> spawn_link_ ?protect parent f
|
| None | Some None -> spawn_top ~on f
|
||||||
|
|
||||||
type cancel_handle = int
|
type cancel_handle = int
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue