1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
-module(f). -export([f1/0,f2/0,call_f2_when_isolated/0]). f1() -> f1_line1, f1_line2. f2() -> f2_line1, f2_line2. call_f2_when_isolated() -> case nodes() of [] -> f2(); _ -> timer:sleep(100), call_f2_when_isolated() end.