Or, alternatively, GenServer.handle_continue/2 that blocks (returning {:noreply, _state, {:continue, :wait_for_workers}}) unless there are N workers. One might put this watchdog into a dedicated start_phase to precisely tune up the starting process.
1 Like


















