74d7b1b942
1 2 3 4 5 6 7 8 9 10 11 12 13
-module(f2). -export([start/1]). start(Fun) -> spawn(fun() -> wait(Fun) end). wait(Fun) -> receive go -> Fun() end.