Common idiom in Erlang. Using message passing (untested code):
do_something(N) ->
Pid = self(),
spawn(fun() -> find_x(Pid, N) end),
receive
{found, Item} -> ...;
not_found -> ...
end.
find_x(Pid, N) -> find_x (Pid, N, [1, 3, 5]).
find_x(Pid, _N, []) -> Pid ! not_found;
find_x(Pid, N, [N|_T]) -> Pid ! {found, N};
find_x(Pid, N, [_H|T]) -> find_x(Pid, N, T).
You can also handle timeouts and stuff.