this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add SimProcess.spawn/spawn_link

garrison f4abd541 a2b7ff67

+16
+16
lib/trinity/sim_process.ex
··· 34 34 end 35 35 end 36 36 37 + @spec spawn(function) :: pid 38 + def spawn(fun) do 39 + case get_sim() do 40 + nil -> Kernel.spawn(fun) 41 + _sim -> Scheduler.spawn_and_yield(fun, false) 42 + end 43 + end 44 + 45 + @spec spawn_link(function) :: pid 46 + def spawn_link(fun) do 47 + case get_sim() do 48 + nil -> Kernel.spawn_link(fun) 49 + _sim -> Scheduler.spawn_and_yield(fun, true) 50 + end 51 + end 52 + 37 53 @spec spawn_node(atom, function) :: pid 38 54 def spawn_node(node, fun) do 39 55 case get_sim() do