wait/4 is an Erlang function exported by "age_system" module.
Waits from 1 to n-seconds until all selected processes become active or inactive.
This is a synchronization function that can be used in the same scope of the running code. Quite useful during initialization or finalization procedures where you need to be sure that all required processes have started or stopped before to proceed with other actions.
Please take into consideration that this particular function has an atomic behavior, therefore it returns always atom ok.
|